FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Silly error

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
Gertje



Joined: 25 Apr 2005
Posts: 9

PostPosted: Mon Apr 25, 2005 1:46 pm    Post subject: Silly error Reply with quote

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:
Code:
build blaat.d


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
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Mon Apr 25, 2005 2:49 pm    Post subject: Re: Silly error Reply with quote

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.
Code:
-Xinclude/d

_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
Gertje



Joined: 25 Apr 2005
Posts: 9

PostPosted: Mon Apr 25, 2005 2:57 pm    Post subject: Reply with quote

Thnx!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group