News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Compiler settings not doing anything

Started by TomerA, September 23, 2011, 06:27:51 PM

Previous topic - Next topic

TomerA

I have a project which the only build settings are "-g -Wall"
Yet, it tries to build it like that:

Quotemingw32-gcc.exe -Wall  -Wall -g  -std=gnu++0x    -c C:\Cshit\projects\Ctest\main.c -o obj\Debug\main.o
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).
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?
Depends on a setting in the build options
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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?), [...]
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.

TomerA

Turns out I'm an idiot, it was "hidden" under "other options" in the global settings :(
Thanks a lot!

I'm a really big fan of C::B.