?
Solved

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

Posted on 2006-07-24
2
Medium Priority
?
920 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
[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
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 500 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 8 hours left to enroll

777 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