Compile problem - libm.a & libc.a on Kubuntu 8.10 [wii, PPC]
Posted: Sat Jul 25, 2009 6:58 pm
Hi
I have problem with compiling my game for Wii.
System: AMD-32bit, Kubuntu 8.10, DevkitPPC r17, libogc - latest from svn compiled by myself
I got this error:
Actually I am NOT using any code from libm or libc
When I tried to compile code on DevkitPPC r17 - Win-32 [at my work PC] it was compiled succesfully
I am using SDL - but that is fine...
Maybe Kubuntu is using some type of zlib compression for .elf files or whatever, because -lz -logc and -lm I removed from OC-Win build and all was fine.
makefile:
I have problem with compiling my game for Wii.
System: AMD-32bit, Kubuntu 8.10, DevkitPPC r17, libogc - latest from svn compiled by myself
I got this error:
Code: Select all
slappy@SlappyhoAsus:~/programming/devkitpro/wii-examples/quadrax$ make
linking ... quadrax.elf
/usr/lib/libSDL.a(SDL_wii_main.o): In function `main':
C:\Users\Daryl\Desktop\Projects\wiiapple\SDL/src/main/wii/SDL_wii_main.c:74: multiple definition of `main'
main.o:/home/slappy/programming/devkitpro/wii-examples/quadrax/source/main.cpp:1854: first defined here
/home/slappy/programming/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/home/slappy/programming/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
collect2: ld returned 1 exit status
make[1]: *** [/home/slappy/programming/devkitpro/wii-examples/quadrax/quadrax.elf] Error 1
make: *** [build] Error 2
When I tried to compile code on DevkitPPC r17 - Win-32 [at my work PC] it was compiled succesfully
I am using SDL - but that is fine...
Maybe Kubuntu is using some type of zlib compression for .elf files or whatever, because -lz -logc and -lm I removed from OC-Win build and all was fine.
makefile:
Code: Select all
LIBS := -lSDL_ttf -lSDL_gfx -lSDL_mixer -lSDL_image -lfreetype -ljpeg -lpng -lz -lSDL -lfat -lwiiuse -lbte -logc -lm