Menu

Debug opts for 'itpp-config --cflags-debug'

2009-05-26
2012-09-15
  • Bogdan Cristea

    Bogdan Cristea - 2009-05-26

    On my system, openSuSE 11.1, 64 bits, IT++ 4.1.r1614, the output of 'itpp-config --cflags-debug' is:

    -I/usr/local/include -Wall -ggdb -O1 -pipe

    Is there any reason of using -O1 for programs used for debugging? This option combined with -ggdb switch is valid, but makes the program debugging difficult. My opinion would be to use -O0 instead, leaving to advanced users to change this option when needed.

     
    • Bogdan Cristea

      Bogdan Cristea - 2009-08-25

      When compiling IT++ 4.0.6 I have noticed that the debug version of the library is compiled with -O1 flag instead of -O0, making the debugging almost impossible. Any reason for this ?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.