Code::Blocks Forums
User forums => Help => Topic started by: mark1977 on December 30, 2011, 05:00:01 pm
-
Hi,
I am running C::B 10.05 on Ubuntu 11, with a c++ project. I have noticed that the default compiler (gcc) does not like the compile options \EHs and \Zi. Now the strange thing is, in order to find BOTH of these I had to look in two different places:
Project-->Properties-->project settings tab-->Project's Build Options
button (at bottom right)-->then
Other Options and remove the /EHs compiler option
project-->Build options-->Other options tab-->remove the /Zi compiler option
So my question is, why are there 2 places for build options and why are they allowed to be different?
Thanks!
-
In your project (if it is the same than the one you attached to the other thread), you have per target options and per project options.
Per project options apply to all targets in a project (if the policy is set to do so) and per target options just apply to one target (e.g. debugger settings for the debug-target, optimization options for the relkease target etc.)
-
mark1977:
Project-->Properties-->project settings tab-->Project's Build Options
and
Project-->Build options
Bring the same GUI with the same settings in it.
-
I see (yes it was the same project). Thanks.
Looks like accessing the GUI one way brought up the whole-project options by default and the other brought up just the debug options by default.