Solved

link error "cannot open file"

Posted on 2001-08-15
6
198 Views
Last Modified: 2012-05-04
I'm using MS visual c++ and get an error
'cannot open file "..\..\..\lib\debug\foo.lib"'.
This file is in the d:\x\x1\lib\debug directory and the
tools/option lib directories point to this path.  Please give me an idea.
0
Comment
Question by:brejen
6 Comments
 
LVL 6

Accepted Solution

by:
Triskelion earned 50 total points
ID: 6390455
Move it to a different directory and try it again.
Move it to something simple like d:\

0
 
LVL 1

Expert Comment

by:Aggarwal
ID: 6390815
In case, u still have problem include the lib file in the project itself ..for checking !!

Suggestion ->
dun give path like ..\..\lib\debug\foo.lib ..

in the linking option specify ur lib name .. foo.lib
now Tools->Options->LibraryPath
u include path of foo.lib ..

This will work !!!
0
 
LVL 11

Expert Comment

by:griessh
ID: 6851526
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to refund the points and PAQ at zero points since you never gave more feedback.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:Triskelion
ID: 6851717
griessh...

My suggestion on this one is valid and could possibly have been the answer.
You're right that there was never any feedback, but that happens a lot especially with 1st and 2nd questions.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6853817
Sure, could be ... but (s)he mentioned having it in the lib path. Just moving the file won't fix the problem (if the statement in the question is really true!)

======
Werner
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6874995
Force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question