Solved

link error "cannot open file"

Posted on 2001-08-15
6
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

691 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