Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to check if url exists using c++? 6 631
How do I write a C++ program (coursework) 20 123
Microsoft Visual C++ Runtime Lirary Runtime Error 15 342
Help formatting a Money value. 2 89
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

806 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