Help with GDC and/or DMD for Linux and Code::Blocks

Brendan brenzie at gmail.com
Wed Sep 3 08:54:49 PDT 2008


Brendan O. wrote:
> I noticed that compiling a simple program with DMD for testing doesn't work. The message I get:
> 
> ***
> object.d: module object cannot read file 'object.d'
> ***
> 
> I looked for object.d and found it, and set up the compiler inside C::B to locate it, though it looked like it should already see it. Okay, I tested the simple program you get when you start a D project. Seems to finally have some results. I changed it to a simple "hello D", and I get errors:
> 
> ***
> /usr/include/d/4.2.3/std/c/stdio.d|240|Error: identifier 'gcc.config.libc.fpos_t' is not defined|
> /usr/include/d/4.2.3/std/c/stdio.d|275|Error: identifier 'gcc.config.libc.fpos_t' is not defined|
> /usr/include/d/4.2.3/std/c/stdio.d|275|Error: gcc.config.libc.fpos_t is used as a type|
> /usr/include/d/4.2.3/std/c/stdio.d|276|Error: identifier 'gcc.config.libc.fpos_t' is not defined|
> /usr/include/d/4.2.3/std/c/stdio.d|276|Error: gcc.config.libc.fpos_t is used as a type|
> /usr/include/d/4.2.3/std/c/stdlib.d|127|module config cannot read file 'gcc/config/config.d'|
> ||=== Build finished: 6 errors, 0 warnings ===|
> ***
> 
> At this point, I'm tempted to write "goodbye D" or maybe, God forbid, "hello, again, Windows... long time no see".

Okay. I've got DMD 2.xxx running perfectly from the command line (or at 
least I think so, as I tested it successfully with a simple program, and 
  the version is shown correctly, and so on).

Now it's only about getting Code Blocks to recognize it. What I get 
there is:

    "practiceD - Debug" uses an invalid compiler. Skipping...
    Nothing to be done.

Well, that certainly looks ugly to me. Doesn't it look ugly to you too? 
:P If you're sitting at a computer, and you press that button, 
whereafter you see that message, it doesn't just look ugly, it also 
FEELS ugly. It's like... "Arrrrgh! What the hell's the problem now???!!"

So can anyone please help?

If it's of any help, the executable 'dmd' is in /usr/local/bin, and I 
have 'libphobos.a' in /usr/lib, and 'libphobos2.a' in /usr/local/lib.


More information about the Digitalmars-d-learn mailing list