SIGSEGV when using D DLL with Qt MinGW

Jerry via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 23 04:26:05 PST 2016


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.


More information about the Digitalmars-d-learn mailing list