User forums > Help
Compiler settings not doing anything
TomerA:
I have a project which the only build settings are "-g -Wall"
Yet, it tries to build it like that:
--- Quote ---mingw32-gcc.exe -Wall -Wall -g -std=gnu++0x -c C:\Cshit\projects\Ctest\main.c -o obj\Debug\main.o
--- End quote ---
For some reason it adds another "-Wall" and "-std=gnu++0x" which of-course generate a warning messages since this is a C type file.
I'm using SVN 7280 version (built on 26/6/11) under Windows Vista.
Jenna:
Check the settings of the project and target.
And especially check the global compiler settings (the most common source for such issues).
TomerA:
--- Quote from: jens on September 23, 2011, 06:31:01 pm ---Check the settings of the project and target.
And especially check the global compiler settings (the most common source for such issues).
--- End quote ---
The global compiler settings are empty (I thought they are being override by project's settings anyway, don't they?), and the target is correct (Debug in my case).
oBFusCATed:
--- Quote from: TomerA on September 23, 2011, 06:35:20 pm ---I thought they are being override by project's settings anyway, don't they?
--- End quote ---
Depends on a setting in the build options
Jenna:
--- Quote from: TomerA on September 23, 2011, 06:35:20 pm ---The global compiler settings are empty (I thought they are being override by project's settings anyway, don't they?), [...]
--- End quote ---
The global options are alwaqys added, but you can chose whether project options are added or prepended to the target options.
Compiler settings can be either in the "Compiler flags" or in the other "Other options" tab (for settings without checkbox).
And they can be made for the whole project, or for the target only (highlight the projects name or the targets name in the "Build options").
Please check all of these possibilities.
C::B does add build-flags on its own.
Navigation
[0] Message Index
[#] Next page
Go to full version