Dynamic D Library
BCS
ao at pathlink.com
Tue Jul 28 10:25:02 PDT 2009
Reply to Daniel,
> Well of course it can't compile: YOU MOVED test.d! What do you expect
> when you tell it to import a file that no longer exists? The compiler
> is not psychic.
>
> If you really, absolutely have to have the two parts in different
> directories, just generate a header file.
>
> dmd -H -c -o- test.d
>
> That generates test.di, which you have to make available to prog.d.
>
> Of course, in this particular case, test.di is exactly the same as
> test.d, since all the functions are small enough to be inlined.
>
ditto. I was going to post exactly that point.
More information about the Digitalmars-d
mailing list