dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'
ag0aep6g
anonymous at example.com
Wed May 1 22:35:12 UTC 2019
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
More information about the Digitalmars-d-learn
mailing list