Unable to compile with latest version of Fmod studio with mingw

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

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

Hi,

We don’t have C++ ABI for mingw, ensure to use to use our C wrapper: FMOD Engine | Platforms - Windows.

Hope this helps!