User forums > Help
LNK1181
Corndog:
Hello.
After using rc2 for a while, I decided to download today's (March 21) nightly. Whenever I try to compile a project, it gives me a linker error--LNK1181. After searching the web and these forums, I found that it's probably something to do with the linker library paths. However, all the paths are correct (I think). They are absolute paths pointing to AdvAPI32.Lib, Gdi32.Lib, and User32.Lib all located in C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Lib\
There was another topic on the forums relating to this...I tried the suggestion mentioned there, and it didn't work.
Since you're probably going to ask all kinds of questions about my setup, I'll try to answer as many as I can now.
I'm using WinXP SP2, C::B Nightly Build from 3/21/06, VC++ Toolkit, and the SDK. I can't think of anything else, so feel free to ask!
Thanks.
Michael:
Hello,
Did you enter the libraries you need in the linker?
Best wishes,
Michael
Corndog:
Yup. Gdi32, user32, and advapi32 libs in the linker tab, and the lib directories from the toolkit and SDK in the Directories/Linker tab.
Forgot to post the exact error message...here it is/
--- Code: ----------------- Build: default in Corndog ---------------
Linking executable: corndog.exe
LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
Process terminated with status 1181 (0 minutes, 0 seconds)
1 errors, 0 warnings
--- End code ---
I've looked in the target settings...the only mention of a .obj file is the output file. I can't find a input file setting anywhere.
mandrav:
Looks like a spaces-in-path error.
Go to "Settings->Compiler & debugger->[select your compiler]->Other" and enable full logging. Then re-post your build log here.
Corndog:
I thought for sure you guys got rid of that problem in rc2...
Anyways, I did have spaces in the VC++ Toolkit and SDK path. I moved the directories to c:/programming/ and took out the spaces. Now, when I try to compile, it just says that there is "nothing to be done".
Hmmm....I guess I didn't switch to full command line errors when I downloaded it. Sorry. Here's the new one, path's fixed.
--- Code: ----------------- Build: default in Corndog ---------------
cl.exe /nologo /EHsc /IC:\Programming\MicrosoftSDK\Include /IC:\Programming\VCToolkit\include /IC:\Programming\VCToolkit\include /IC:\Programming\MicrosoftSDK\Include /c win_main.cpp /FoC:\Programming\corndog\.objs\win_main.obj
Execution of 'cl.exe /nologo /EHsc /IC:\Programming\MicrosoftSDK\Include /IC:\Programming\VCToolkit\include /IC:\Programming\VCToolkit\include /IC:\Programming\MicrosoftSDK\Include /c win_main.cpp /FoC:\Programming\corndog\.objs\win_main.obj' in 'C:\Programming\corndog' failed.
Nothing to be done.
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version