0
0

I’m using the latest FMOD Ex release, with MingW (GCC 3.4.2). When trying to compile the /examples/useplugins/ program, I get this error:

“C:\fmod\examples\USEPLU~1>make
In file included from ../../api/inc/fmod.h:1330,
from main.c:10:
../../api/inc/fmod_codec.h:151: error: redefinition of typedef ‘FMOD_CODEC_STATE

../../api/inc/fmod_codec.h:14: error: previous declaration of ‘FMOD_CODEC_STATE’
was here
In file included from ../../api/inc/fmod.h:1331,
from main.c:10:
../../api/inc/fmod_dsp.h:171: error: redefinition of typedef ‘FMOD_DSP_STATE’
../../api/inc/fmod_dsp.h:16: error: previous declaration of ‘FMOD_DSP_STATE’ was
here”

The problem of course, is that in both cases FMOD_CODEC_STATE and FMOD_DSP_STATE are typedef’d prior to being used in their respective include files in order to define several structures, and the compiler doesn’t like that. Circular dependancy and all that.

What’s a possible fix? Please, nothing like ‘use another compiler’. :-)

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.