# Dev-cpp and fmod

**URL:** <https://qa.fmod.com/t/dev-cpp-and-fmod/12821>\
**Category:** FMOD Engine\
**Created:** [November 18, 2016, 1:07pm UTC](https://qa.fmod.com/t/dev-cpp-and-fmod/12821 "2016-11-18T13:07:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robo](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@robo](https://qa.fmod.com/u/robo)\
**Post date:** [November 18, 2016, 1:07pm UTC](https://qa.fmod.com/t/dev-cpp-and-fmod/12821/1 "2016-11-18T13:07:00Z")

</div>

Using Dev-cpp 5.11  
Download setup: [http://www.fmod.org/download/fmodstudio/api/Win/fmodstudioapi10814win-installer.exe](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:🔉:setMode(unsigned int)@8’  
main.cpp:(.text$\_ZN12MSoundSystem9playSoundEPN4FMOD5SoundEb[\_\_ZN12MSoundSystem9playSoundEPN4FMOD5SoundEb]+0x41): undefined reference to `FMOD:🔉:setMode(unsigned int)@8’

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

Use gendef and dlltool. No results.

---

<div class="post-metadata">

**Author:** ![Andrew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/andrew/32/261_2.png) [@Andrew](https://qa.fmod.com/u/Andrew)\
**Post date:** [November 21, 2016, 12:33am UTC](https://qa.fmod.com/t/dev-cpp-and-fmod/12821/2 "2016-11-21T00:33:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![robo](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@robo](https://qa.fmod.com/u/robo)\
**Post date:** [November 21, 2016, 6:19am UTC](https://qa.fmod.com/t/dev-cpp-and-fmod/12821/3 "2016-11-21T06:19:00Z")

</div>

Thank you very much. C interface works good.
