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

Author Topic: I cannot run my SFML programs in Release mode  (Read 1161 times)

0 Members and 1 Guest are viewing this topic.

TheArmoredPanda

  • Newbie
  • *
  • Posts: 5
    • View Profile
I cannot run my SFML programs in Release mode
« on: October 30, 2022, 07:48:21 pm »
      I configured Sfml to work with all configurations, and my debug code works, however whenever I switch to release mode and try to run the program I get errors such as "Error   LNK2038   mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in Source.obj" and "Error   LNK2038   mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in Source.obj"
I use windows on my computer if it helps.


 

kojack

  • Sr. Member
  • ****
  • Posts: 343
  • C++/C# game dev teacher.
    • View Profile
Re: I cannot run my SFML programs in Release mode
« Reply #1 on: October 30, 2022, 08:40:25 pm »
It sounds like you are building your program in release, but linking it with the debug version of SFML.
Make sure it's the release SFML in the addition libraries setting of the linker.

TheArmoredPanda

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: I cannot run my SFML programs in Release mode
« Reply #2 on: October 30, 2022, 09:01:02 pm »
Thank you, this worked!

 

anything