AutoDLL

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 6 09:14:18 PDT 2017


On Thursday, 6 July 2017 at 12:15:57 UTC, FoxyBrown wrote:

>
> //pragma(lib, "portaudio_x86.lib"); // Doesn't work because 
> libs are invalid

Probably just a OMF/COFF issue. If you try to link with a COFF 
library while compiling with 32-bit DMD in its default 
configuration on Windows, you'll get such errors. You'll need to 
compile with -m32mscoff MS linker instead. Either that, or run 
coffimplib [1] (doc at [2]) on the portaudio dll.

[1] http://ftp.digitalmars.com/coffimplib.zip
[2] http://www.digitalmars.com/ctg/coffimplib.html


More information about the Digitalmars-d-learn mailing list