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:
In file included from ../../api/inc/fmod.h:1330,
../../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’
In file included from ../../api/inc/fmod.h:1331,
../../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
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’.
- DrSven asked 11 years ago
- You must login to post comments