User forums > Using Code::Blocks

Can't remove option -Wall

<< < (2/4) > >>

MortenMacFly:

--- Quote from: oBFusCATed on August 21, 2010, 09:55:48 pm ---C::B supports lots of compilers and would be very hard to make a conversion for the compile time options between all of them.

--- End quote ---
It's not only very hard, but impossible. Because you have to keep in mind that there are not only different compilers, but also different compiler versions (MSVC6 vs. MSVC8 (.NET) for example).

If you convert to a different compiler, it's up to you to take the appropriate steps. C::B keeps the settings for your convenience, in case you switch e.g. from a GCC based compiler to another GCC based one (e.g. MinGW to GCC/ARM).

If you project needs to support a lot of compiler although you can handle this just fine with C::B you could also use something like CMake.

bobc:
Maybe I can't see the obvious but this is how to reproduce the 'bug'. There may be other scenarios. Remember this was the first time I used C::B but I think this was the scenario I fell over.

C::B is version 10.05
OS Windows 7

1. Set up so that Digital Mars D toolchain is set up correctly.
2. Do not set up GDC D toolchain such that it is a invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!] but leave it as default.
3. Create a D project and leave all the settings as are so it uses the GDC compiler.
4. Try to build (just the default 'hello world' that the wizard provides).
5. It will complain invalid toolchain.
6. Change the compiler to Digital Mars D.
7. Build the project and it will complain about -Wall.
8. In the build options for the project there is no 'Wall' so can't turn it off there.
9. Change back to GDC compiler. Option 'Wall' is turned off there.

No where as far as I can tell is this option on but yet the build still fails with -Wall.

bob

Jenna:
You should look into "Project -> Build options -> Compiler settings -> Other options" for th eproject and all targets.
Compiler flags that are not handled by the checkboxes in the "Compiler flags" tab should appear there.

EDIT:
I just tested it with a switch from gdc to digital mars and it was there.

bobc:
Did you follow the instructions exactly? Where exactly did you find the option.

bob

bobc:
I just tried it again and in Project>BuildOptions>Compiler>Other options there is nothing. The test project still fails the same way.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version