Building Derelict based application under windows

Mike Parker aldacron at gmail.com
Fri Mar 23 01:18:02 UTC 2018


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.


More information about the Digitalmars-d-learn mailing list