User forums > General (but related to Code::Blocks)

DMD compiler problems... -Wall option?

(1/6) > >>

Silverling:
When I try to compile, even the simplest D program, the compiler goes like this:

dmd.exe -Wall -w -g  -IC:\dmd\src\phobos  -c main.d -ofobj\Debug\main.obj
Error: unrecognized switch '-Wall'

Ok, I lost more than 30 mins searching of the -Wall option on the compiler settings, but there is none. No check box to enable/disable with this parameter. What should I do?!

afb:
There is no "-Wall" in DMD settings, so the "-w" flag you have there is good enough...
Maybe the flag was added explicitly ? Check the .cbp XML file directly as a last resort.

MortenMacFly:

--- Quote from: Silverling on November 22, 2006, 10:17:19 pm ---Ok, I lost more than 30 mins searching of the -Wall option on the compiler settings, but there is none. No check box to enable/disable with this parameter. What should I do?!

--- End quote ---
There is one (I swear!) in one of these places:
1.) Settings -> Compiler and Debugger -> [Your D Compiler] -> Tab "Compiler" -> Tab "Other options"
2.) [Your project's build options] -> Tab "Compiler" -> Tab "Other options"
3.) [Your project's target's build options] -> Tab "Compiler" -> Tab "Other options"

C::B does *only* apply the settings you have setup in your project, nothing else. You *will* find the -Wall settings somewhere.

I guess this happened because you have started to create a "C/C++" project and then changed the compiler to "D"... right?

With regards, Morten.

Silverling:
Yep. The -Wall option is set on the project file. Is this a C::B bug? I just started using C::B and programming D.

And no, I choose Digital Mars D compiler right from the beginning.

By the way. Now that I have replaced the line, it complays that it cannot find "c:\dmd\bin\..\..\dmd\bin\linker.exe"
True, there is no such file, but the linker on the options page is the "dmd.exe" file. Why does it search for linker!?

MortenMacFly:

--- Quote from: Silverling on November 22, 2006, 11:13:42 pm ---Yep. The -Wall option is set on the project file. Is this a C::B bug?

--- End quote ---
Depends. Did you use the wizard to create a "D" application? There is a known bug in the wizard (IMHO also reported in the bug tracker)... BTW: It's assigned to me I'd say... :oops: :lol:
With regards, Morten.

Navigation

[0] Message Index

[#] Next page

Go to full version