Solved

VC++ and compile error - fatal error LNK1104: cannot open file

Posted on 2006-07-24
2
843 Views
Last Modified: 2008-01-09
Hello,

I am trying to create a VC++ console application.

In my porpoerties dialog box for for the project and in Linker\Input I specify the additional dependencies as

"C:\Program Files\Lemur\Lemur 4.3.1\lib\lemur.lib  "C:\ProgramFiles\MicrosoftVisualStudio8\VC\PlatformSDK\Lib\wsock32.lib

However, I get the below error.  Can somebody please tell me how to fix?  I am new to VC++.  I am using 2005 Professional.

Thanks



Error      1      fatal error LNK1104: cannot open file 'C:\Program Files\Lemur\Lemur 4.3.1\lib\lemur.lib  C:\Program.obj'      LemurTest2      
0
Comment
Question by:dmontgom
2 Comments
 

Author Comment

by:dmontgom
ID: 17168741
Actually...I took out the path for wsock32 and I now get the following error:


My aditional dependencies look like this...

C:\Program Files\Lemur\Lemur 4.3.1\lib\lemur.lib  wsock32.lib

Error      1      fatal error LNK1104: cannot open file 'C:\Program.obj'      LemurTest2

Thanks....      
0
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 125 total points
ID: 17168778
1. Check if you are missing the ending quotes

"C:\Program Files\Lemur\Lemur 4.3.1\lib\lemur.lib" (this one)

2. Check if you have library lemur.lib in the right place

3. You can just give the library names
i.e lemur.lib wsock32.lib

In Linker->General give the directory name for library lemur.lib if it is not found in the Tools->Options->Projects->VC++ Directories->Library Files.

You need not give the full path to wsock32.lib as it will be in the Tools->Options->Projects->VC++ Directories->Library Files.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

18 Experts available now in Live!

Get 1:1 Help Now