On Thursday, 9 February 2017 at 19:10:55 UTC, Daniel Kozak wrote:
Dne 9.2.2017 v 17:20 berni via Digitalmars-d-learn napsal(a):

[...]

Ah ok, I understand. So calling with "dmd Special/special.d Common/common.d" works.

But when I compile common.d to common.o (with dmd -c common.d) and remove common.d after that is there still a possibility to link? The obvious doesn't work:

[...]

Thats ok too, you still need to add -ICommon
dmd -ICommon Special/special.d Common/common.o

Doesn't work here:

$> dmd -ICommon Special/special.d Common/common.o
Special/special.d(4): Error: module common is in file 'common.d' which cannot be read
import path[0] = Common
import path[1] = /usr/include/dmd/phobos
import path[2] = /usr/include/dmd/druntime/import

Reply via email to