Author Topic: Compiler settings not doing anything  (Read 4533 times)

Offline TomerA

  • Single posting newcomer
  • *
  • Posts: 5
Compiler settings not doing anything
« on: September 23, 2011, 06:27:51 pm »
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
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Compiler settings not doing anything
« Reply #1 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).

Offline TomerA

  • Single posting newcomer
  • *
  • Posts: 5
Re: Compiler settings not doing anything
« Reply #2 on: September 23, 2011, 06:35:20 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).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Compiler settings not doing anything
« Reply #3 on: September 23, 2011, 07:54:51 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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Compiler settings not doing anything
« Reply #4 on: September 23, 2011, 07:58:53 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.

Offline TomerA

  • Single posting newcomer
  • *
  • Posts: 5
Re: Compiler settings not doing anything
« Reply #5 on: September 23, 2011, 11:52:11 pm »
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.