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

Simen Kjaeraas simen.kjaras at gmail.com
Sat Mar 29 12:48:56 PDT 2008


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


More information about the Digitalmars-d-learn mailing list