SFML community forums
Help => General => Topic started by: sc on March 04, 2016, 10:59:34 am
-
Hi guys,
Could someone explain to this C++/SFML noob what the difference is between the release and debug versions of the libraries ?
Thanks !
-
Debug libraries generally are not optimized and link against other debug libraries. In some cases the debug symbols are also included in the lib. For Visual Studio libraries however the debug symbols are exported to the PDB file.
Debug libraries allow you to easily step through your program in debug mode, while when debugging release libraries some instructions will just be jumped over.
Remember to always link against debug libraries in debug mode and release libraries in release mode!
-
Ah ...
So, I take it by 'optimized' you mean 'compiled with an /O option' ?
-
/O is one possible optimization flag for Visual Studio. There are quite a few more (see a generated SFML VS project file), and every compiler has their own sets. ;)