Sign in to follow this  
avocados

SDL and LNK4099?

Recommended Posts

1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'SDLmain.lib(SDL_win32_main.obj)' or at 'C:\Users\sagan\documents\visual studio 2010\Projects\test\Debug\vc100.pdb'; linking object as if no debug info

I had compiled SDL for VC2010 and it was fine until I included winsock2.h and now I have these warnings. I don't understand the meaning of this. Is SDL linking somehow to older files than winsock2.h?

Share this post


Link to post
Share on other sites
You actually have two issues: an error and a warning.

The error means that you have compiled one library that your project depends on with one version of the C++ runtime library, and another library with a different version. Make sure that they are all compiled with the same one (e.g. Multi-threaded or Multi-threaded DLL, but not a combination of the two). This can be set in project options, C/C++ -> Code Generation tab (in VS 2008 - I imagine it's similar in 2010).

The warning means that visual studio could not find the debug information for the SDLmain library. Presumably it's not being output to the same directory as the lib file or something (maybe being overwritten by the SDL debug database if they're output to the same dir?).

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