View previous topic :: View next topic |
Author |
Message |
Gertje
Joined: 25 Apr 2005 Posts: 9
|
Posted: Mon Apr 25, 2005 1:46 pm Post subject: Silly error |
|
|
While building a simple program for testing build I got these error messages.
Code: |
/usr/local/include/d/std/c/stdio.d(12): module stddef is in multiple defined
/usr/local/include/d/std/string.d(30): module uni is in multiple packages uni
|
I searched through these forums and found one that kinda matched the second error, but it appeared to be a small bug then (I think it was version 1.3) So I tried this:
Code: |
module blaat;
import std.stdio;
void main()
{
writefln("Hello World!");
}
|
Ohh and I typed this at the command line:
The file is called blaat.d
Am I doing something wrong???
Ohh I have a /etc/dmd.conf containing:
Code: |
[Environment]
DFLAGS=-I/usr/local/include/d
|
|
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Mon Apr 25, 2005 2:49 pm Post subject: Re: Silly error |
|
|
Gertje wrote: | While building a simple program for testing build I got these error messages.
Code: |
/usr/local/include/d/std/c/stdio.d(12): module stddef is in multiple defined
/usr/local/include/d/std/string.d(30): module uni is in multiple packages uni
|
|
Ok, what's happening is that you are also compiling the modules in the standard D library (and they do have some silly mistakes in them). This is happening because you have placed the library code in a non-standard directory. Build assumes that the D library is in a path that has 'phobos' in its name.
You have two choices:
(1) Move the D standard library to a path that has the word 'phobos' in it.
e.g. Code: | DFLAGS=-I/usr/local/include/d/phobos |
(2) Use the -X switch to exclude the current location.
e.g. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
Gertje
Joined: 25 Apr 2005 Posts: 9
|
Posted: Mon Apr 25, 2005 2:57 pm Post subject: |
|
|
Thnx!!! |
|
Back to top |
|
|
|