943,907 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2480
  • C++ RSS
Sep 13th, 2006
1

I got a Link error 1181 with fresh code from source safe.

Expand Post »
I got a Link error 1181 with fresh code from source safe. It is looking for a dll that is in the windows/system32 directory and cannot find it.
Quote ...
Linker Tools Error LNK1181
cannot open input file "filename"

The linker tool could not find "filename" because it does not exist or the path was not found.
So how do I set the path to it?

I do not see amy sort of system path in MSCONFIG to set.
Similar Threads
Reputation Points: 17
Solved Threads: 0
Junior Poster
complete is offline Offline
147 posts
since Dec 2005
Sep 13th, 2006
0

Re: I got a Link error 1181 with fresh code from source safe.

linkers do NOT link with *.dll files, but link with *.lib files. What, specifically, is "filename"? Is that something you just made up for posting purposes or is that what the linker actaully put in the error message?

>I do not see amy sort of system path in MSCONFIG to set.
Nor should there be. c:\windows\system32 is not intended for development purposes and there is nothing in that directory that your compiler will ever need.
Last edited by Ancient Dragon; Sep 13th, 2006 at 6:44 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Sep 13th, 2006
1

Re: I got a Link error 1181 with fresh code from source safe.

The file that the code is tryong to link to is CdrvHF32.lib
Reputation Points: 17
Solved Threads: 0
Junior Poster
complete is offline Offline
147 posts
since Dec 2005
Sep 13th, 2006
0

Re: I got a Link error 1181 with fresh code from source safe.

I think you need VC++ 6.0 compiler installed. I have 2005 express and it isn't in there. Nor is the *.dll in the c:\windows directory. So I suspece you are just SOL with that program and your compiler.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Sep 14th, 2006
1

Re: I got a Link error 1181 with fresh code from source safe.

From http://www.wcscnet.com/Products/Cdrv...%5B0001%5D.htm
Quote ...
Make sure that you included the files CDRVPP.LIB, CDRVDL32.LIB, CDRVHF32.LIB, & CDRVXF32.LIB. They are found in the Lib directory for the Microsoft Visual C/C++ compilers and in the LibB directory for the Borland C/C++ compilers.
Reputation Points: 185
Solved Threads: 28
Posting Whiz in Training
dwks is offline Offline
269 posts
since Nov 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: using ifstream, counting elements of each line in a dat file
Next Thread in C++ Forum Timeline: Need help,my C++ calc





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC