Arch Deviant
Still Fresh
Hi,
following the wiki on http://wiki.gp2x.org/wiki/Using_Devcpp I end up with the following compiler errors.
I managed to make the gpe outside of the devcpp environment but inside devcpp its a no go
can anyone help? sorry for such a lame first question but never coded in c/c++ before and all this library stuff takes some getting used to..
would I be better going for something like pygame to get up to speed on the gp2x before trying C?
thanks in advance
Compiler Log:
Compiler: devkitgp2x
Building Makefile: "C:\code\Makefile.win"
Executing make...
make.exe -f "C:\code\Makefile.win" all
arm-linux-g++.exe sdltest.o -o "Project1.gpe" -L"C:/devkitgp2x/lib" -static -lSDL_mixer -lSDL_ttf -lSDL_image -lsmpeg -lmikmod -lvorbisidec -lfreetype -ljpeg -lpng12 -lz -lm -lSDL -lpthread
sdltest.o: In function `TestSDLImage()':
sdltest.cpp
.text+0x6a8): undefined reference to `rotozoomSurfaceXY'
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.exe: *** [Project1.gpe] Error 1
Execution terminated
following the wiki on http://wiki.gp2x.org/wiki/Using_Devcpp I end up with the following compiler errors.
I managed to make the gpe outside of the devcpp environment but inside devcpp its a no go
would I be better going for something like pygame to get up to speed on the gp2x before trying C?
thanks in advance
Compiler Log:
Compiler: devkitgp2x
Building Makefile: "C:\code\Makefile.win"
Executing make...
make.exe -f "C:\code\Makefile.win" all
arm-linux-g++.exe sdltest.o -o "Project1.gpe" -L"C:/devkitgp2x/lib" -static -lSDL_mixer -lSDL_ttf -lSDL_image -lsmpeg -lmikmod -lvorbisidec -lfreetype -ljpeg -lpng12 -lz -lm -lSDL -lpthread
sdltest.o: In function `TestSDLImage()':
sdltest.cpp
C:/devkitgp2x/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_openFileRW':
mp3_mad.c
mp3_mad.c
mp3_mad.c
mp3_mad.c
C:/devkitgp2x/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_closeFile':
mp3_mad.c
mp3_mad.c
C:/devkitgp2x/lib\libSDL_mixer.a(mp3_mad.o): In function `read_next_frame':
mp3_mad.c
mp3_mad.c
mp3_mad.c
mp3_mad.c
mp3_mad.c
mp3_mad.c
C:/devkitgp2x/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_seek':
mp3_mad.c
mp3_mad.c
mp3_mad.c
mp3_mad.c
C:/devkitgp2x/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_getSamples':
mp3_mad.c
C:/devkitgp2x/lib\libSDL_mixer.a(mp3_mad.o): In function `mad_openFile':
mp3_mad.c
mp3_mad.c
mp3_mad.c
mp3_mad.c
make.exe: *** [Project1.gpe] Error 1
Execution terminated