标题:为何交叉编译出的程序在arm下无法运行?
作者:bienew
日期:2007-09-24 08:57
内容:
cross-3.4.1,交叉编译出的demo或examples发布到arm板上执行,假设编译出来的为books
books:提示command not found
./books:提示*** file not found
并且,
arm-linux-gcc -o hello hello.c
编译出的hello程序在arm板上也无法运行,但是cgwin下编译出的hello可以运行
望大侠们能给我一些提示,谢谢!
#1 [guoyun_he 09-28 15:30]
可能的原因:
1、交叉编译内核的编译器和你交叉编译程序的编译器要是同一个编译器;
2、在arm板上要改变一些权限 chmod 777 youfilename.。