Building Derelict based application under windows

ANtlord antlord92 at gmail.com
Fri Mar 23 12:24:12 UTC 2018


On Friday, 23 March 2018 at 01:18:02 UTC, Mike Parker wrote:
> On Thursday, 22 March 2018 at 20:51:36 UTC, ANtlord wrote:
>
>> Thanks in advance. Please feel free to ask any question
>
> Your errors with the derelict libs are linker errors, with the 
> early ones being this one:
>
> "warning LNK4003: invalid library format; library ignored"
>
> At the top of the output, DUB is warning you that you've put 
> -m64 in the package file and shouldn't do that. I would guess 
> that's your problem. The libraries are being compiled as 32-bit 
> OMF, which is default on the prepackaged DMD binaries on 
> Windows, but the -m64 in your dflags is causing your app to 
> compile as 64-bit. Try taking -m64 out of your package file and 
> put -ax86_64 on your DUB command line instead.

Thanks a lot. I tried it later but forgot to write about it to 
the forum. I fixed it adding --arch=x86_64 so a command for 
building is `dub build --arch=x86_64`


More information about the Digitalmars-d-learn mailing list