SFML community forums
Help => General => Topic started 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.
-
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.
-
Thank you, this worked!