64-bit libfmod.a for MinGW

(R. Miller) #1

After downloading FMOD Studio Programmer’s API and Low Level Programmer API 1.06.02 for Windows, I have the libfmod.a library which successfully links on 32-bit MinGW (i686-w64-mingw32), but I can’t seem to get it to link in 64-bit mode (x86_64-w64-mingw32).

Am I forgetting a compiler switch? Or must I perform additional steps to link FMOD in 64-bit mode? The compiler only spouts a (paraphrased) ‘skipping libfmod.a because of architecture mismatch’ error.

(Nicholas Wilcox) #2

You’re trying to link the 32bit import library in a 64bit build. That’s why you get an architecture mismatch error.

You don’t need a special mingw import library in 64bit builds. You can use the DLL directly.

(R. Miller) #3

Thanks; pointing the linker to the DLL (-L) and adding -lfmod64 worked like charm!