On 02.05.19 00:25, kdevel wrote:
dmd -unittest -main -run package.d c/package.d

That doesn't compile c/package.d. Everything after `-run package.d` is interpreted as an argument to the compiled program.

I.e., that line effectively does this:

    dmd -unittest -main package.d
    ./package c/package.d

You need to put c/package.d before -run:

    dmd -unittest -main c/package.d -run package.d

Or use -i so that DMD compiles the imported module automatically:

    dmd -unittest -main -i -run package.d

Reply via email to