Solved

link error "cannot open file"

Posted on 2001-08-15
6
194 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TCP/IP Socket - connection close results in data lost 14 120
Socket Programming (Unix) 8 119
is twain_32.dll cmpatible with windows 10 ? 10 128
c++ syntax question 9 44
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now