Jump to content
  • Advertisement
Sign in to follow this  
Smarkus

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

This topic is 498 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

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

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!