0
0

error in header file: fmod_codec.h:

at the top:

[code:1b5l7yvo]typedef struct FMOD_CODEC_STATE FMOD_CODEC_STATE;[/code:1b5l7yvo]
then later:
[code:1b5l7yvo]
typedef struct FMOD_CODEC_STATE
{
.......
} FMOD_CODEC_STATE;[/code:1b5l7yvo]

gcc 3.3.6 totally barfs and says you multiply defined the type. please remove the bottom redundant typedef

  • You must to post comments
0
0

fmod_dsp.h has same problem

  • You must to post comments
0
0

what?????? the first typedef is for the reason you state. the second one is completely redundant. it does the exact same thing!

there are huge libraries that have ONLY the first typedef (gtk/glib come to mind) that are based on this type of forward typedefing of structures.

i removed the second typedef and all worked fine:

[code:2g623inh]struct FMOD_CODEC_STATE
{
.......
};[/code:2g623inh]

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.