"module is in multiple packages" error
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Wed Jan 3 18:07:57 PST 2007
Jona Joachim wrote:
> Now a connector should know what pointmasses are attached to it and a
> pointmass should know to which connectors it is attached...
> That's why point.d does a "private import connector" and connector.d does
> a "private import point". This works very well in C with header files and
> #ifdefs. However gdc throws following error:
>
> gdc -I/home/jona/prog/d/derelict -O2 -fno-strict-aliasing -c point.d
> connector.d:5: module constructor.point is in multiple packages constructor.point
> gmake: *** [point.o] Error 1
>
> Could anybody tell me how I should manage this kind of situation?
I believe GDC has a special flag to work around this. I don't have it
installed on this computer, but IIRC 'man gdc' should tell you what it is.
Or you could use DMD which I believe has no such restriction. Will only
work for x86 Windows & Linux though...
More information about the Digitalmars-d-learn
mailing list