Code::Blocks Forums

User forums => Help => Topic started by: codemania on December 23, 2006, 03:26:04 pm

Title: D Language - Digital Mars - error apears
Post by: codemania on December 23, 2006, 03:26:04 pm
Hi!

I unzip dmd.zip to C:
I create a "D Application" with "Digital Mars" by wizard. I select "Release".

The message error is - " Error: -o no longer supported, use -of or -od"

thanks
Title: Re: D Language - Digital Mars - error apears
Post by: killerbot on December 23, 2006, 04:31:16 pm
Hi!

I unzip dmd.zip to C:
I create a "D Application" with "Digital Mars" by wizard. I select "Release".

The message error is - " Error: -o no longer supported, use -of or -od"

thanks

could you explain here what it should be and how it works. So we don't need to study D ;-)
Title: Re: D Language - Digital Mars - error apears
Post by: peso on December 24, 2006, 11:19:35 am
The DMD compiler is under development, so it is a moving target.  :)

To determine what commandline your version of CodeBlocks uses, enable full logging:

Settings -> Compiler and debugger
Selected compiler = Digital Mars D Compiler
Tab "Other"
Compiler logging = Full command line

My version of CB (svn 3295) uses "-ofobj\Debug\hello.obj" for the hello-world example produced by the wizard, which makes me think that you should probably just download a fresh nightly of CB.

I'm using DMD version 0.173

Regards,
Title: Re: D Language - Digital Mars - error apears
Post by: killerbot on December 24, 2006, 11:24:02 am
you can also check the advanced options of the compiler, when we fix something there, the fix won't work unless you either :
- remove your default.conf (that's were all those things get stored on first CB run)
- edit your default.conf for the specific part (?? or maybe just remove the D part in it ??)
Title: Re: D Language - Digital Mars - error apears
Post by: codemania on January 06, 2007, 08:52:17 pm
Hello World!

Now It's Work very well.

I installed version DMD 1.00 and DMC, I used the same method like last time and similar problems apears.
My "dmd" directory apears like this "c:\dmd\dmd".
This morning I thought about incompatibilities of IZARC 3.6 (1260).
I unziped the files with Winzip and it worked well.

Thanks to all

Sorry my English
Title: Re: D Language - Digital Mars - error apears
Post by: Chris Williams on January 17, 2007, 04:56:16 pm
The Debug target seems to be fine, but Release target defaults to having a -o option surreptitiously added into Build Options->#defines (if I recall correctly.) Simply removing this seems to fix it.