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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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 ?