Hi ! I am using latest FMOD with Dev-Cpp 18.104.22.168 and CodeBlocks Nightly builds. The object file gets created in both but then during linking
following error pops up,
[Linker error] undefined reference to `_ZNFMOD6System4initEijPv@16′
ld returned 1 exit status
Also , FMOD compiles and links perfectly when i use it in VisualC++ 6.0,
(its easy because VC project files are included). However , I dont want
to use FMOD with a 10 year old compiler , and want to use FMOD with
CodeBlocks which has a nice QT support too.
Any hints what should i add to project options …..
- Roma asked 10 years ago
OK , I understand the Functions are just a little bit different (C interface)when i use FMOD with Dev-Cpp,CodeBlocks(MinGW).
Now , Below is a perfectly written program(100 % correct) by me . It gets builded correctly on Dev-Cpp. I placed a MP3 file "song" in the project folder . When I run the project , blank console pops up and "song"
doesnt gets played .
using namespace std;
result = FMOD_System_Create(&system);
result = FMOD_System_Init(system,100, FMOD_INIT_NORMAL, 0);
result = FMOD_System_CreateSound(system,"song", FMOD_DEFAULT, 0, &sound);
result = FMOD_System_PlaySound(system,FMOD_CHANNEL_FREE, sound, false, &channel);
I am fully confident that all is written correctly , why the song doesnt
gets played ??? 😡
Please login first to submit.