On Tuesday, 23 February 2016 at 11:10:30 UTC, Mike Parker wrote:

I'm surprised you're able to get an executable when linking with the import library.

I actually just tried a bunch of extern(?), extern "?" combinations and it compiled.

If you want 32-bit COFF output from DMD, you'll need to make sure you have the Microsoft compiler tools installed (Visual Studio Community Edition is an easy way to get everything you need) and use the -m32mscoff command line switch with DMD when compiling your DLL. However, there are often incompatibilities between MinGW's COFF and Microsoft's COFF, so you may still get no joy.

I guess I should switch C++ compiler then. Just to stay on the safe side. Maybe Clang. Tryed to Google for the format but didn't find it. Also it seems someone has compiled Qt using it.

Reply via email to