hi,
how can I compile libmad using a c++ compiler? using g++ and -D__cplusplus gives errors. For example:
$ g++ -c -D__cplusplus -DFPM_INTEL decoder.c decoder.c: In function 'void mad_decoder_init(mad_decoder*, void*, mad_flow (*)(void*, mad_stream*), mad_flow (*)(void*, const mad_header*), mad_flow (*)(void*, const mad_stream*, mad_frame*), mad_flow (*)(void*, const mad_header*, mad_pcm*), mad_flow (*)(void*, mad_stream*, mad_frame*), mad_flow (*)(void*, void*, unsigned int*))': decoder.c:76: error: invalid conversion from 'int' to 'mad_decoder_mode' decoder.c: In function 'mad_flow error_default(void*, mad_stream*, mad_frame*)': decoder.c:299: error: invalid conversion from 'void*' to 'int*' decoder.c: In function 'int mad_decoder_run(mad_decoder*, mad_decoder_mode)': decoder.c:553: error: invalid conversion from 'void*' to 'mad_decoder::<anonymous struct>*'
thanks jul