Sign in to follow this  
Smarkus

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

Recommended Posts

Rattrap    3385

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
Smarkus    141

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
Smarkus    141

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
frob    44975

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this