SFML community forums

Help => Graphics => Topic started by: iwn on November 10, 2011, 10:04:39 am

Title: LNK4098 warning for LIBCMT while building graphics DLL
Post by: iwn on November 10, 2011, 10:04:39 am
When compiling SFML2 using Visual C++ 2010 Express I receive the following warning:

Code: [Select]

Linking CXX shared library ..\..\..\lib\sfml-graphics-2.dll
 Creating library ..\..\..\lib\sfml-graphics.lib and object ..\..\..\lib\sfml-graphics.exp
 LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library


Is it harmless in this instance? Why does it appear here?
Title: LNK4098 warning for LIBCMT while building graphics DLL
Post by: Laurent on November 10, 2011, 10:36:58 am
Quote
Is it harmless in this instance?

It is. The MSDN can tell you more about this warning, if you're interested.
Title: LNK4098 warning for LIBCMT while building graphics DLL
Post by: slotdev on November 10, 2011, 10:39:29 am
Basically, one or more libraries that SFML links is using a different version of the C runtime libraries ("CRT").

Have a read of this thread, here (http://www.sfml-dev.org/forum/viewtopic.php?t=6134).
Title: LNK4098 warning for LIBCMT while building graphics DLL
Post by: iwn on November 11, 2011, 01:44:06 am
Laurent and slotdev, thanks for the clarification.