0
0

Hello,
I’m having an issue when I try to compile using MinGW, saying:
../../fMOD/inc/fmod.h forward declaration of ‘ struct FMOD_SYSTEM’

on this code:

FMOD_SYSTEM *soundSystem;
FMOD_RESULT result;
result = soundSystem->init(100,FMOD_INIT_NORMAL,0);

It is erroring on the init line. Any help would be much appriciated.

I had also linked libfmodex.a.

  • You must to post comments
0
0

[quote="malcom2073":r5b6p997]Hello,
I’m having an issue when I try to compile using MinGW, saying:
../../fMOD/inc/fmod.h forward declaration of ‘ struct FMOD_SYSTEM’

on this code:

FMOD_SYSTEM *soundSystem;
FMOD_RESULT result;
result = soundSystem->init(100,FMOD_INIT_NORMAL,0);

It is erroring on the init line. Any help would be much appriciated.

I had also linked libfmodex.a.[/quote:r5b6p997]

I had similar error compiling samples in dev-c. It’s starts out of the blue for no reason.

change

include "../../api/inc/fmod.h"

include "../../api/inc/fmod_errors.h"

include <windows.h>

include <stdio.h>

include <conio.h>

include <math.h>

to

include <windows.h>

include <stdio.h>

include <conio.h>

include <math.h>

include "../../api/inc/fmod.h"

include "../../api/inc/fmod_errors.h"

Works for me. Don’t ask me why.

IMPORTANT to note. I had to move all the fmod includes and libs to a include and lib folder in my project folder and my project folder to the dev-c intallation folder to compile dlls. (NOT A FMOD PROBLEM)

  • You must to post comments
0
0

We’ve been updating the examples to switch the headers around so that fmod’s includes come after the std c and windows headers. I have no idea why they were that way in the first place.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.