Welcome! Log In Create A New Profile

Advanced

Got linker error : /libgloss/rs6000/crtmain.c:18: undefined reference to `main'

Posted by TheDrev 
Hi,

I got the error at link time :

i:/usr/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/lib/crtmain.o: In function `__crtmain':
e:/projects/devkitPro/buildscripts/newlib-1.16.0/libgloss/rs6000/crtmain.c:18: undefined reference to `main'
collect2: ld returned 1 exit status



I think it's because the source mix c and cpp files. Is there something to do in the Makefile ?
I've just updated my devkitpro, but i can compile fine templetes and demo anyway....



Edited 1 time(s). Last edit at 05/21/2009 01:14AM by TheDrev.
Ok, I've forget some libs, just don't mind :)
Maybe it's because it's getting late ;)
Sorry, only registered users may post in this forum.

Click here to login