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

Author Topic: SFML Static libraries and /NODEFAULTLIB  (Read 2253 times)

0 Members and 1 Guest are viewing this topic.

Xander314

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://sfmlcoder.wordpress.com/
    • Email
SFML Static libraries and /NODEFAULTLIB
« 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...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML Static libraries and /NODEFAULTLIB
« Reply #1 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.
Laurent Gomila - SFML developer

Xander314

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://sfmlcoder.wordpress.com/
    • Email
SFML Static libraries and /NODEFAULTLIB
« Reply #2 on: May 14, 2011, 03:53:09 pm »
Okay I'll do that then. Thanks for the quick reply :)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
SFML Static libraries and /NODEFAULTLIB
« Reply #3 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?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML Static libraries and /NODEFAULTLIB
« Reply #4 on: May 14, 2011, 04:38:44 pm »
Quote
Even SFML's external libraries?

Yes.
Laurent Gomila - SFML developer

 

anything