# Unable to compile with latest version of Fmod studio with mingw

**URL:** <https://qa.fmod.com/t/unable-to-compile-with-latest-version-of-fmod-studio-with-mingw/21327>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [March 6, 2024, 12:08pm UTC](https://qa.fmod.com/t/unable-to-compile-with-latest-version-of-fmod-studio-with-mingw/21327 "2024-03-06T12:08:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelTheBirthdayRa](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/michaelthebirthdayra/32/6296_2.png) [@MichaelTheBirthdayRa](https://qa.fmod.com/u/MichaelTheBirthdayRa)\
**Post date:** [March 6, 2024, 12:08pm UTC](https://qa.fmod.com/t/unable-to-compile-with-latest-version-of-fmod-studio-with-mingw/21327/1 "2024-03-06T12:08:41Z")

</div>

I was trying to use fmod studio in my project. When I go to link the libraries it keeps giving me undefined errors.

Here is the makefile i am using

```auto
CXX = g++
CXXFLAGS = -Wall -Iinclude -Iscenes -Isprites -Imatpat -I"C:/Program Files/FMOD SoundSystem/FMOD Studio API Windows/api/studio/inc" -I"C:/Program Files/FMOD SoundSystem/FMOD Studio API Windows/api/core/inc"
CXXFLAGSD = -g
OBJS := $(patsubst %.cpp,%.o,$(wildcard *.cpp)) $(patsubst %.cpp,%.o,$(wildcard sprites/*.cpp)) $(patsubst %.cpp,%.o,$(wildcard scenes/*.cpp))
SRC := $(wildcard *.cpp)
LIBS = -lallegro.dll -lallegro_primitives.dll -lallegro_font.dll -lallegro_image.dll -lallegro_audio.dll -lallegro_acodec.dll -lfmod -lfmodstudio
LIBSD = -lallegro-debug.dll -lallegro_primitives-debug.dll -lallegro_font-debug.dll -lallegro_image-debug.dll -lallegro_audio-debug.dll -lallegro_acodec-debug.dll
MATPATPATH = Matpat
NAME = coolplatformer
OUTPATH = bin\Debug
build: $(OBJS)
	$(CXX) -L"C:\\Program Files\\FMOD SoundSystem\\FMOD Studio API Windows\\api\\studio\\lib\\x86\\" -L"C:\\Program Files\\FMOD SoundSystem\\FMOD Studio API Windows\\api\\core\\lib\\x86\\" -o $(NAME).exe $(OBJS) -static-libstdc++ libMatPat.a $(LIBS)
	make run
clean:
	del $(OBJS)
run:
	$(NAME).exe
lib:
	$(MATPATPATH)/build.bat

```

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [March 7, 2024, 3:11am UTC](https://qa.fmod.com/t/unable-to-compile-with-latest-version-of-fmod-studio-with-mingw/21327/2 "2024-03-07T03:11:27Z")

</div>

Hi,

We don’t have C++ ABI for mingw, ensure to use to use our C wrapper: [FMOD Engine | Platforms - Windows](https://fmod.com/docs/2.02/api/platforms-win.html#libraries).

Hope this helps!
