Answered
0
0

Using Dev-cpp 5.11
Download setup: http://www.fmod.org/download/fmodstudio/api/Win/fmodstudioapi10814win-installer.exe
Extract lib: E:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib32\
Extract headers: E:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\include\fmod\

In project add link to library (libfmod.a).

Simple programm result:
main.cpp:(.text$_ZN12MSoundSystem10InitializeEv[__ZN12MSoundSystem10InitializeEv]+0x60): undefined reference to FMOD::System::getNumDrivers(int*)@8'
main.cpp:(.text$_ZN12MSoundSystem10InitializeEv[__ZN12MSoundSystem10InitializeEv]+0xbb): undefined reference to
FMOD::System::init(int, unsigned int, void*)@16′
main.cpp:(.text$_ZN12MSoundSystem11createSoundEPN4FMOD5SoundEPKc[__ZN12MSoundSystem11createSoundEPN4FMOD5SoundEPKc]+0x30): undefined reference to FMOD::System::createSound(char const*, unsigned int, FMOD_CREATESOUNDEXINFO*, FMOD::Sound**)@20'
main.cpp:(.text$_ZN12MSoundSystem9playSoundEPN4FMOD5SoundEb[__ZN12MSoundSystem9playSoundEPN4FMOD5SoundEb]+0x29): undefined reference to
FMOD::Sound::setMode(unsigned int)@8′
main.cpp:(.text$_ZN12MSoundSystem9playSoundEPN4FMOD5SoundEb[__ZN12MSoundSystem9playSoundEPN4FMOD5SoundEb]+0x41): undefined reference to `FMOD::Sound::setMode(unsigned int)@8′

Windows 7 x64. Compiling: 32-bit Release build.

Use gendef and dlltool. No results.

  • You must to post comments
Best Answer
1
0

You can’t use the FMOD C++ interface with Dev-C++. You must use the FMOD C interface instead.

This is because Dev-C++ mangles C++ symbols differently to the Microsoft toolchain which the FMOD libs are built with.

  • You must to post comments
0
0

Thank you very much. C interface works good.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.