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
  • AutoDLL FoxyBrown via Digitalmars-d-learn
    • Re: AutoDLL Mike Parker via Digitalmars-d-learn
    • Re: AutoDLL FoxyBrown via Digitalmars-d-learn

Reply via email to