Hi all,
So I got my gp2x for christmas (yay!) and now that I have played all the great games I turned my attention to some development work. I got the dual Makefile from the wiki and used it o compile the image demo, also from the wiki. That went fine so I tried to compile one of my programs. It uses floats quite heavily so I added the -msoft-float flag. The compile when OK but when I tried to run it (inside a shell script) I got the following on the output:
./helloworld.gpe: relocation error: ./helloworld.gpe: undefined symbol: __floatsisf
I added a float to the wiki demo program and the same thing happened. Here are the two compilation commands:
gp2x-gcc -c -Wall -I/usr/local/gp2xdev/include `/usr/local/gp2xdev/bin/sdl-config --cflags` -msoft-float demo.c -o demo.o
gp2x-gcc `/usr/local/gp2xdev/bin/sdl-config --static-libs` -msoft-float -lgcc -lm -lg -lpthread -lSDL demo.o -o helloworld.gpe
Any ideas?
Cheers,
Charlie
So I got my gp2x for christmas (yay!) and now that I have played all the great games I turned my attention to some development work. I got the dual Makefile from the wiki and used it o compile the image demo, also from the wiki. That went fine so I tried to compile one of my programs. It uses floats quite heavily so I added the -msoft-float flag. The compile when OK but when I tried to run it (inside a shell script) I got the following on the output:
./helloworld.gpe: relocation error: ./helloworld.gpe: undefined symbol: __floatsisf
I added a float to the wiki demo program and the same thing happened. Here are the two compilation commands:
gp2x-gcc -c -Wall -I/usr/local/gp2xdev/include `/usr/local/gp2xdev/bin/sdl-config --cflags` -msoft-float demo.c -o demo.o
gp2x-gcc `/usr/local/gp2xdev/bin/sdl-config --static-libs` -msoft-float -lgcc -lm -lg -lpthread -lSDL demo.o -o helloworld.gpe
Any ideas?
Cheers,
Charlie