Can't compile with 2 packages with the same name (in different modules)

Alexandr askmymail at ifuwant.com
Sun Mar 30 02:24:51 PDT 2008


Simen Kjaeraas Wrote:

> On Sat, 29 Mar 2008 01:51:40 +0100, Unknown W. Brackets  
> <unknown at simplemachines.org> wrote:
> 
> > I always wonder why this isn't the default.... sure cluttering dirs up  
> > with object files is bad but I'd rather have it be the default than make  
> > people confused....
> >
> > -[Unknown]
> >
> >
> > Milke Wey wrote:
> >> On Fri, 2008-03-28 at 03:21 -0400, Alexandr wrote:
> >>> Hello to all!
> >>> like wrote in subj i can't do this =)
> >>> here it is code:
> >>> http://paste.dprogramming.com/dpi75yap
> >>>
> >>> i need compiling (not rebuild, dsss, etc)
> >>>
> >>> 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.
> 
> -- Simen
can't understand you, be please more explicit

PS: with -op works, thanks a lot!


More information about the Digitalmars-d-learn mailing list