Advertisement

[Visual Studio Help] Need help with visual studio linker error.

Started by June 07, 2017 03:52 PM
5 comments, last by Norman Barrows 7 years, 6 months ago

[attachment=36259:Capture1.PNG]

You probably need to add a few windows libraries (which are usually done by default for a lot of projects). Under the Project settings, check under Linker -> Input -> Additional Dependencies. Below is a list of files that are typically added by default for windows projects

kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib

"I can't believe I'm defending logic to a turing machine." - Kent Woolworth [Other Space]

Advertisement

Thanks for replying. Can you tell me how I can delete a library that I added by mistake which it turns out isnt an actual library so It's kind of showing me an error?

You probably need to add a few windows libraries (which are usually done by default for a lot of projects). Under the Project settings, check under Linker -> Input -> Additional Dependencies. Below is a list of files that are typically added by default for windows projects

kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib

Typically it is that same place in Visual Studio. Project Properties -> Linker -> Input -> Additional Dependencies

"I can't believe I'm defending logic to a turing machine." - Kent Woolworth [Other Space]

Typically it is that same place in Visual Studio. Project Properties -> Linker -> Input -> Additional Dependencies

I can't edit it out. It seems like you can't delete it. I added it following a youtube video but now i'm stuck

I can't edit it out. It seems like you can't delete it. I added it following a youtube video but now i'm stuck

That dialog has a many subtle details. There are configuration and platform settings you can modify for specific configurations, or for multiple configurations, or for all configurations. Some settings can be global, others local. When values are inherited from elsewhere they appear as non-editable.

If you can't find the right place after searching the dialog, there is still the manual approach. Close the project, then open the matching .vcproj file and/or .prop files in a text editor. Search those for the library names, and edit the list. You'll probably want to make a backup of the file first in case you mess up the formatting. Then reload the project and verify that the list is now correct, repeating if necessary until you find the right location.

Advertisement

it seems to be looking for the default window procedure.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms633573(v=vs.85).aspx

if the lib shows up in the solution explorer, you should be able to remove it from the project by right clicking on it and selecting "delete" as i recall.

Norm Barrows

Rockland Software Productions

"Building PC games since 1989"

rocklandsoftware.net

PLAY CAVEMAN NOW!

http://rocklandsoftware.net/beta.php

This topic is closed to new replies.

Advertisement