How to handle differrnt modules which has same file name ?

JScott jrs7561 at louisiana.edu
Tue Nov 20 05:37:09 PST 2007


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.


More information about the Digitalmars-d-learn mailing list