SFML community forums

Help => General => Topic started by: Xander314 on May 14, 2011, 03:16:26 pm

Title: SFML Static libraries and /NODEFAULTLIB
Post by: Xander314 on May 14, 2011, 03:16:26 pm
I built the static SFML binaries in Visual Studio. However, when I try to link them get a warning:
warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library   

Having done a bit of research, I checked the runtime libraries used in each case. However both the SFML projects and my project use multithreaded debug DLL for debug config, and multithreaded DLL for release config.

So the used runtime libraries match and yet I still get this error. Does anyone have any idea why?

Thanks in advance for your help, and sorry if this has been asked before and I missed the answer: I did look around, but nowhere did there seem to be a straightforward solution...
Title: SFML Static libraries and /NODEFAULTLIB
Post by: Laurent on May 14, 2011, 03:40:01 pm
I've never really understood this warning, like you said everything use the same version of the standard library. You can just ignore it, like many people do.
Title: SFML Static libraries and /NODEFAULTLIB
Post by: Xander314 on May 14, 2011, 03:53:09 pm
Okay I'll do that then. Thanks for the quick reply :)
Title: SFML Static libraries and /NODEFAULTLIB
Post by: Nexus on May 14, 2011, 04:19:55 pm
Quote from: "Laurent"
I've never really understood this warning, like you said everything use the same version of the standard library.
Even SFML's external libraries?
Title: SFML Static libraries and /NODEFAULTLIB
Post by: Laurent on May 14, 2011, 04:38:44 pm
Quote
Even SFML's external libraries?

Yes.