android - GCC ARM cross compiler won't compile simple Hello world -


i installed arm c compiler android using apt-get install gcc-arm-linux-gnueabi. installed successfully, wrote simple hello world program:

#include <stdio.h> int main(){   printf("hello world");   return 0; } 

i saved hello.c , tried compile using: arm-linux-gnueabi-gcc hello.c -o hello says:

usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find crt1.o: no such file or directory usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find crti.o: no such file or directory collect: error: ld returned 1 exit status 


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -