Page 1 of 1

.dll portaudio bug import on win

Posted: Wed Jul 30, 2025 8:28 am
by det_uio
Hello,

I get this error with windows . (It is ok with MacOs, see https://www.purebasic.fr/french/viewtopic.php?t=19391)

From this line :
ImportC "C:|Users\detro\Downloads\portaudio_sndfile\portaudio-19.7.0\build\msvc|x64\Release\portaudio_x64.dl]"

I get
error:
C:\Users\detro\Downloads\portaudio sndfile\portaudio-19.7.0\build\m
svc\x64\Release\portaudio_x64.dll: bad file type. Did you specify a DLL instead of an import library?

It has been compiled with visual studio and works fine in a c programme.

// Edit: Changed font size; Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)

Re: .dll portaudio bug import on win

Posted: Wed Jul 30, 2025 9:45 am
by Fred
you need to use the .lib, not the .dll.

Re: .dll portaudio bug import on win

Posted: Wed Jul 30, 2025 7:19 pm
by det_uio
Thanks

:D