交叉编译的文件在目标板无法执行
我在PC上写了一个简单的C程序
#include <stdio.h>
int main()
{
printf("hello!\n");
return 1;
}
用 arm-linux-gcc -o test -c test.c 交叉编译通过,然后把编译的二进制放到目标板上,修改权限执行,结果却是这样,这是怎么回事
# chmod 777 test
# ./test
# ./test: line 1: syntax error: word unexpected (expecting ")")