Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: LNK4098 warning for LIBCMT while building graphics DLL  (Read 2064 times)

0 Members and 1 Guest are viewing this topic.

iwn

  • Newbie
  • *
  • Posts: 17
    • View Profile
LNK4098 warning for LIBCMT while building graphics DLL
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
LNK4098 warning for LIBCMT while building graphics DLL
« Reply #1 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.
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
LNK4098 warning for LIBCMT while building graphics DLL
« Reply #2 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.
SFML 2.1

iwn

  • Newbie
  • *
  • Posts: 17
    • View Profile
LNK4098 warning for LIBCMT while building graphics DLL
« Reply #3 on: November 11, 2011, 01:44:06 am »
Laurent and slotdev, thanks for the clarification.