【发布时间】:2011-10-08 08:57:14
【问题描述】:
我想在 Android 上运行一个“hello world”程序。
它是用 C 编写的,我尝试了不同的交叉编译器。
arm-elf-gcc :当我在手机上使用 adb 键入“./hello”时,出现“分段错误”。 但是 arm-elf-gdb 正常运行 hello 程序,没有分段错误。
arm-linux-gcc : 当我在手机上输入“./hello”时,我得到“非法指令”
关于如何在手机上运行我的程序有什么想法吗?
【问题讨论】:
标签: cross-compiling