作者awaysu (阿伟苏)
看板LinuxDev
标题[问题] 请教toolchain编译後的程式不能执行问题?
时间Thu May 8 18:24:33 2014
Dear All,
请教各位
我按照网路上教学下载arm的toolchain以及busybox
(arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2)
最後可以顺利编译且执行busybox
之後我自己写了一个printf的程式然後编译
arm-none-linux-gnueabi-gcc -o hello.out -Wall main.c
没想到在板子执行後却发生
shell@android:/mnt/sdcard/Download/test # ./hello.out
sh: ./hello.out: No such file or directory
可以请教是甚麽原因吗?
是否有少flag?感谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.32.231.88
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/LinuxDev/M.1399544677.A.63B.html
1F:推 goldie:档案缺乏可执行权限,chmod a+x hello.out 05/08 18:54
2F:→ enthos:arm-none-linux-gnueabi-gcc -static -o hello.out main.c 05/08 20:26