# FMOD + Mingw + Windows x64 + DevC++

**URL:** <https://qa.fmod.com/t/fmod-mingw-windows-x64-devc/14352>\
**Category:** Other\
**Created:** [February 5, 2019, 6:10pm UTC](https://qa.fmod.com/t/fmod-mingw-windows-x64-devc/14352 "2019-02-05T18:10:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcio6cordas](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@marcio6cordas](https://qa.fmod.com/u/marcio6cordas)\
**Post date:** [February 5, 2019, 6:10pm UTC](https://qa.fmod.com/t/fmod-mingw-windows-x64-devc/14352/1 "2019-02-05T18:10:01Z")

</div>

Hi guys.  
I’m trying to use FMOD here but I’m having a crashing problem…  
I’m using gcc so the code is written in C-like way. The code compiles but when it runs, crash!  
I’m linking the fmod64.lib and fmod64\_vc.lib and have the dll’s on the .exe file paste.  
Someone have any ideas? Thanks. The code:  
`
#include “FMOD/inc/fmod.h”
#include “iostream”
using namespace std;
int main()
{
FMOD_SYSTEM* system;
FMOD_System_Create(&system);`

```
    cin.get();
return 0;

```

}

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [February 11, 2019, 4:04am UTC](https://qa.fmod.com/t/fmod-mingw-windows-x64-devc/14352/2 "2019-02-11T04:04:09Z")

</div>

It should be just a matter of telling GCC “-lfmod64” which links against the 64bit DLL.

> [@linking with MinGW g++ 64bit on win7](https://qa.fmod.com/t/linking-with-mingw-g-64bit-on-win7/11998):
>
> Hi, i read a lot postings regarding linking issues with mingw and also a lot of workarounds. But the official statement is, that i should be able to use fmod also in mingw. I am using fmodstudioapi10607win-installer What have i done to test this so far? I copied the play\_stream.cpp, common.h and common\_platform.h into a testfolder changed the function name to int main(int argc, char \*\*argv) copied all .h and .hpp from the inc-folder to c:\fmod\inc copied fmod64.dll from the l…

---

<div class="post-metadata">

**Author:** ![marcio6cordas](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@marcio6cordas](https://qa.fmod.com/u/marcio6cordas)\
**Post date:** [February 14, 2019, 1:44pm UTC](https://qa.fmod.com/t/fmod-mingw-windows-x64-devc/14352/3 "2019-02-14T13:44:44Z")

</div>

Hi. I know everybody here is just using Unity, but I really need to do it with DevC++ and I’m having problems when the program runs (although it compiles fine)

The steps I did till now:  
1 - included the “fmod.h” file  
2 - included the “fmod64\_vc” lib  
3 - put the “fmod64.dll” file in the same directory of the program  
4 - code: FMOD\_SYSTEM\* system; // I’m using c++ compatible functions (otherwise it doesn’t runs)  
5 - code: FMOD\_System\_Create(&system); //here makes it crash when run

Can someone give me some tip?  
My PC config: windows 10, intel, x64  
Thanks!
