【发布时间】:2013-05-28 18:15:05
【问题描述】:
我在要使用 arm-gcc 编译器编译的 c 代码中使用了 string.h 头文件,生成的可执行文件将在 android 设备上执行。 当我将可执行文件推送到设备上并执行它时,它向我显示了链接错误。 如何在这样的设备上使用 string.h 中的函数? 这些头文件是硬件特定的吗?
【问题讨论】:
-
我使用了strstr(),错误是cannot link strstr
-
stdio.h 和 stdlib.h 中的函数也可以轻松完美地使用
-
您在使用 NDK 吗?哪个编译器?
-
strstr()存在于 bionic 中。你有一个工具/构建问题。 -
我正在为这个项目使用 SDK
标签: android c gcc header-files cross-compiling