Solved

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

Posted on 2006-07-24
2
883 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 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