Can't compile with 2 packages with the same name (in different modules)
Bill Baxter
dnewsgroup at billbaxter.com
Sat Mar 29 14:41:04 PDT 2008
Simen Kjaeraas wrote:
>>>> thanks for your help!
>>> You can try the -op switch:
>>> dmd main.d module1/myclass.d module2/myclass.d -op
>>> it should put the object files in the same directory as the source
>>> files. so the first myclass.o doesn't get overridden by the second one.
> Following the D module naming might be better, no?
> i.e module1/myclass.d => module1.myclass.obj.
> Of course, this might lead to problems with very long file names.
DSSS/rebuild does that.
--bb
More information about the Digitalmars-d-learn
mailing list