SFML community forums

Help => General => Topic started by: TheArmoredPanda on October 30, 2022, 07:48:21 pm

Title: I cannot run my SFML programs in Release mode
Post by: TheArmoredPanda 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.


 
Title: Re: I cannot run my SFML programs in Release mode
Post by: kojack 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.
Title: Re: I cannot run my SFML programs in Release mode
Post by: TheArmoredPanda on October 30, 2022, 09:01:02 pm
Thank you, this worked!