I try to compile guyfawkes SDL test program, but when I do I get this error
CODE
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_openFileRW':
mp3_mad.c.text+0x1c): undefined reference to `mad_stream_init'
mp3_mad.c.text+0x24): undefined reference to `mad_frame_init'
mp3_mad.c.text+0x30): undefined reference to `mad_synth_init'
mp3_mad.c.text+0xa0): undefined reference to `mad_timer_zero'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_closeFile':
mp3_mad.c.text+0xc4): undefined reference to `mad_stream_finish'
mp3_mad.c.text+0xcc): undefined reference to `mad_frame_finish'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `read_next_frame':
mp3_mad.c.text+0x150): undefined reference to `mad_frame_decode'
mp3_mad.c.text+0x17c): undefined reference to `mad_stream_errorstr'
mp3_mad.c.text+0x24c): undefined reference to `mad_stream_buffer'
mp3_mad.c.text+0x260): undefined reference to `mad_frame_decode'
mp3_mad.c.text+0x28c): undefined reference to `mad_timer_add'
mp3_mad.c.text+0x2f8): undefined reference to `mad_stream_buffer'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_seek':
mp3_mad.c.text+0x384): undefined reference to `mad_timer_set'
mp3_mad.c.text+0x390): undefined reference to `mad_timer_compare'
mp3_mad.c.text+0x3f4): undefined reference to `mad_timer_compare'
mp3_mad.c.text+0x444): undefined reference to `mad_timer_zero'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_getSamples':
mp3_mad.c.text+0x5a8): undefined reference to `mad_synth_frame'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_openFile':
mp3_mad.c.text+0x820): undefined reference to `mad_stream_init'
mp3_mad.c.text+0x828): undefined reference to `mad_frame_init'
mp3_mad.c.text+0x834): undefined reference to `mad_synth_init'
mp3_mad.c.text+0x8a8): undefined reference to `mad_timer_zero'
make: *** [sdltest.gpe] Error 1
I know this is because of the SDL mixer because it shows up a lot, and by removing all audio tests from the code I can compile it and it runs fine.
Anybody want to help a newb gp2x programmer?
CODE
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_openFileRW':
mp3_mad.c.text+0x1c): undefined reference to `mad_stream_init'
mp3_mad.c.text+0x24): undefined reference to `mad_frame_init'
mp3_mad.c.text+0x30): undefined reference to `mad_synth_init'
mp3_mad.c.text+0xa0): undefined reference to `mad_timer_zero'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_closeFile':
mp3_mad.c.text+0xc4): undefined reference to `mad_stream_finish'
mp3_mad.c.text+0xcc): undefined reference to `mad_frame_finish'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `read_next_frame':
mp3_mad.c.text+0x150): undefined reference to `mad_frame_decode'
mp3_mad.c.text+0x17c): undefined reference to `mad_stream_errorstr'
mp3_mad.c.text+0x24c): undefined reference to `mad_stream_buffer'
mp3_mad.c.text+0x260): undefined reference to `mad_frame_decode'
mp3_mad.c.text+0x28c): undefined reference to `mad_timer_add'
mp3_mad.c.text+0x2f8): undefined reference to `mad_stream_buffer'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_seek':
mp3_mad.c.text+0x384): undefined reference to `mad_timer_set'
mp3_mad.c.text+0x390): undefined reference to `mad_timer_compare'
mp3_mad.c.text+0x3f4): undefined reference to `mad_timer_compare'
mp3_mad.c.text+0x444): undefined reference to `mad_timer_zero'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_getSamples':
mp3_mad.c.text+0x5a8): undefined reference to `mad_synth_frame'
C:/devkitGP2X/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_openFile':
mp3_mad.c.text+0x820): undefined reference to `mad_stream_init'
mp3_mad.c.text+0x828): undefined reference to `mad_frame_init'
mp3_mad.c.text+0x834): undefined reference to `mad_synth_init'
mp3_mad.c.text+0x8a8): undefined reference to `mad_timer_zero'
make: *** [sdltest.gpe] Error 1
I know this is because of the SDL mixer because it shows up a lot, and by removing all audio tests from the code I can compile it and it runs fine.
Anybody want to help a newb gp2x programmer?