hello.c的代码:
#include <stdio.h>
int main( )
{
printf("hello,FriendlyARM \n");
return 0;
}
编译过程:gcc -static hello.c -o hello
已经成功编译通过了
编译器版本:gcc version 4.4.3
在android下运行遇到的错误
/test # . hello
/system/bin/sh: hello: line 1: syntax error: unexpected "("
/test # ./hello
./hello: line 1: syntax error: unexpected "("
请各位大侠指教。