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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -