dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'

kdevel kdevel at vogtner.de
Wed May 1 22:46:34 UTC 2019


On Wednesday, 1 May 2019 at 22:35:12 UTC, ag0aep6g wrote:
> 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.

Thanks for the information. Wouldn't it be better, if everything 
directly
after the `-run` would be taken as argument to the programm? In 
this case

    dmd -unittest -main -run package.d

would immediately fail due to missing source.

[...]
>
> Or use -i so that DMD compiles the imported module 
> automatically:
>
>     dmd -unittest -main -i -run package.d

That looks nice.


More information about the Digitalmars-d-learn mailing list