User forums > Using Code::Blocks

Can't remove option -Wall

<< < (3/4) > >>

oBFusCATed:
There is a tree on the left side of the Build options dialog,
click all items in the tree and go to compiler -> other options.
If you do no find the -Wall option, please paste the content of your cbp file. (use some pastebin site or [ code ]  tags)

Edit:
See this image: http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/glut/glut-codeblocks_html_10a7db1f.png

You should click all tree items (glut_hw, debug, release), for every item goto compiler -> other options and verify that -Wall is not defined.

bobc:
Oh Boy, is that a confused file. The project is set up for dmd on both debug and release. The -Wall flag is not visible anywhere. If I look at the D project that is working all the 'compiler=' elements are set to dmd.

bob


--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="test" />
<Option pch_mode="2" />
<Option compiler="gdc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\test" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="dmd" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin\Release\test" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gdc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="hello.d" />
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

--- End code ---

oBFusCATed:
http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/glut/glut-codeblocks_html_10a7db1f.png

Do you see the "Policy" combobox on this image?
What it says is that the options for this target should be appended to the project options.
And in your case the project is using the GDC compiler and the -Wall option is defined there.

There are two solutions:
1. Change the policy
2. Change the project compiler to DMD

p.s. also read this: http://wiki.codeblocks.org/index.php?title=The_build_process_of_Code::Blocks

bobc:
I think I'm being really thick here.

How do I change the project compiler to dmd. If I right click my project and select 'Build Options', both Debug and Release say the compiler is 'Digital Mars D Compiler'. If I select the GDC D compiler from any of the various places (Settings, Project or right click) I still don't see the -Wall setting anywhere.

bob

oBFusCATed:
Have you understood the tree thing I was talking about?
Click the root of the tree and change the compiler.... it is as simple as that...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version