Hello everyone,
I have been using Code::Blocks for the past few weeks, and everything has been working like a charm until yesterday. For some unknown reason, I tried using the "Rebuild" button, which I had never used before. Sadly, ever since I pressed that button, I can't compile any project using FMOD anymore...
Here is the message the IDE outputs :
And here is the source code (there are only the basics here) :
#include <stdio.h>
#include <stdlib.h>
#include <fmodex/fmod.h>
int main()
{
FMOD_SYSTEM *system=NULL;
FMOD_SOUND *son=NULL;
FMOD_System_Create(&system);
FMOD_System_Init(system, 2, FMOD_INIT_NORMAL, NULL);
FMOD_System_CreateSound(system, "SFX/son.wav", FMOD_CREATESAMPLE, NULL, &son);
FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, sout, 0, NULL);
FMOD_Sound_Release(son);
FMOD_System_Close(system);
FMOD_System_Release(system);
printf("FMOD fonctionne !\n");
return 0;
}
There is no RPT file generated by CB. I have tried to compile projects using other libraries and they work well.
I have properly linked the library with the project, and the runtime DLL is in the project's folder. Once again, the project compiled perfectly well until I decided to press the "Rebuild" button.
I am using the latest Code::Blocks available in the Downloads page, provided with the mingw compiler. I am using the GCC compiler. I have tried re-installing Code::Blocks but that did not work. I have also set-up a fresh FMOD install, no luck there either. I downloaded the latest version of FMOD available
here.
Thanks in advance,
Alex