I'm playing around with the new sansa emulator, and wanted to build some test code for it:
int lolwtf =1;
int main(){
int ABCDEF,LMNOP;
int ABCDEF2 = 0;
LMNOP = lolwtf;
ABCDEF2 = LMNOP +1;
}
However putting that in test.c and trying to compile gives:
[mgg6@smoky Desktop]$ arm-elf-gcc test.c
/home/mgg6/rockbox/bin/arm-elf/lib/gcc/arm-elf/4.0.3/../../../../arm-elf/bin/ld: crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status
Rockbox builds normally, so I think the cross compiler works. Do I need to use some other flags when I compile? I flipped through the rockbox makefile, but didn't really understand it well enough to figure out what it does differently.