How to handle differrnt modules which has same file name ?

z_axis z_axis at 163.com
Tue Nov 20 06:48:17 PST 2007


在 Tue, 20 Nov 2007 21:37:09 +0800,JScott <jrs7561 at louisiana.edu> 写道:

> z_axis Wrote:
>
>> For ezample, the directory is as below:
>> d:\src\p1\a.d
>> d:\src\p2\a.d
>>
>> d:\src\test.d
>>
>> import p1.a;
>> import p2.a;
>>
>> void main(char[][] args) {
>> //...
>> }
>>
>>
>> d:\src\dmd -O -release -w -L/SUBSYSTEM:windows:5 test.d p1\a.d p2\a.d
>>
>> compling is ok however cannot link !!!  because p2.a.obj will overwrite
>> p1.a.obj. then there is only one a.obj in d:\src !!!
>> what is the best way to solve this problem ?
>>
>>
>> regards!
>
> I think you can solve this problem by using the -op option.

great !

-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list