Chinaunix首页 | 论坛 | 博客
  • 博客访问: 563226
  • 博文数量: 199
  • 博客积分: 5087
  • 博客等级: 大校
  • 技术积分: 2165
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-26 21:53
文章存档

2010年(199)

我的朋友

分类:

2010-05-18 18:48:19

建起了开发平台,运行“Hello World”入门程序,出现bin/sh: hello :not found错误,网上说法云云,啊,不过还是被我的鼠眼瞄到了,嘿嘿~~~、
Build Options->
Build BusyBox as a static binary (no shared libs)
Build with Large File Support (for accessing file>2GB)

如果选择 Build BusyBox as a static binary (no shared libs) 方式进行编译时,所需的库已经与程序静态地链接在一起,这些程序不需要额外的库就可以单独运行,但是自己编写的程序在文件系统上运行必须采用静态编译,否则会报诸如:bin/sh: hello :not found的错误。

静态编译如:

arm-linux-gcc –static hello.c –o hello

在开发板上直接./hello,

但是遇到了Illegal instruction

 

%B9%C2%D3%B0%C6%AE%C1%E3xx/blog/item/839f018133db12dd9023d9b4.html

 

阅读(1285) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~