- 论坛徽章:
- 0
|
问题跟踪
1.
[root@EmbedSky Documents]# ./hello
-/bin/sh: ./hello: not found
原因是没有静态库
编译的时候:
arm-linux-gcc -static -o hello hello.c
但是问题依然没有完全的解决,出现
[root@EmbedSky Documents]# ./hello
Illegal instruction
这个问题
wind@Thinkpad-T60:~/Work/TQ$ file hello1
hello1: ELF 32-bit LSB executable, ARM, version 1, statically linked, for GNU/Linux 2.0.0, not stripped
这是用gcc编译出来的a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
思考:
是不是内核版本的问题??
为什么arm-linux-gcc 编译出来的文件是2.0.0版本的呢??
|
|