www.digitalmars.com         C & C++   DMDScript  

D - [help] module abc is in multiply defined

reply Ant <duitoolkit yahoo.ca> writes:
compiler message:

ddi/Bitmap.d(21): module Types is in multiply defined

what does that mean?
How do I look for it?

Ant
Mar 28 2004
parent reply "Derek Parnell" <Derek.Parnell psyc.ward> writes:
On Sun, 28 Mar 2004 23:48:11 -0500 (29/Mar/04 02:48:11 PM)
, Ant <duitoolkit yahoo.ca> wrote:

 compiler message:

 ddi/Bitmap.d(21): module Types is in multiply defined

 what does that mean?
 How do I look for it?

DMD has found more than one module called 'Types' in the files it was compiling. This could be that two files have the statement 'module Types;' in them, and/or a file called Types.d was processed, and/or a file has two or more module statements. Anyhow, that is the message I get when I make one of the above mistakes. There maybe more reasons that these though. -- Derek
Mar 28 2004
parent Ant <duitoolkit yahoo.ca> writes:
On Mon, 29 Mar 2004 15:39:59 +1000, Derek Parnell wrote:

 On Sun, 28 Mar 2004 23:48:11 -0500 (29/Mar/04 02:48:11 PM)
 , Ant <duitoolkit yahoo.ca> wrote:
 
 compiler message:

 ddi/Bitmap.d(21): module Types is in multiply defined

 what does that mean?
 How do I look for it?

DMD has found more than one module called 'Types' in the files it was compiling. This could be that two files have the statement 'module Types;' in them, and/or a file called Types.d was processed, and/or a file has two or more module statements. Anyhow, that is the message I get when I make one of the above mistakes. There maybe more reasons that these though.

that should be easy to grep out, let me try... ah!.... def.Types doesn't have a module declaration. CC? (compiler confused?) thanks. Ant
Mar 28 2004