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

Author Topic: difference between eg/ sfml-system.lib and sfml-system-d.lib ?  (Read 1065 times)

0 Members and 1 Guest are viewing this topic.

sc

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hi guys,

Could someone explain to this C++/SFML noob what the difference is between the release and debug versions of the libraries ?

Thanks !

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10914
    • View Profile
    • development blog
    • Email
Re: difference between eg/ sfml-system.lib and sfml-system-d.lib ?
« Reply #1 on: March 04, 2016, 11:08:51 am »
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!
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sc

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: difference between eg/ sfml-system.lib and sfml-system-d.lib ?
« Reply #2 on: March 04, 2016, 11:37:31 am »
Ah ...
So, I take it by 'optimized' you mean 'compiled with an /O option' ?


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10914
    • View Profile
    • development blog
    • Email
AW: difference between eg/ sfml-system.lib and sfml-system-d.lib ?
« Reply #3 on: March 04, 2016, 12:07:58 pm »
/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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything