android jni ndk-build---------->对“std::allocator::allocator()”的未定义引用
android jni ndk-build---------->错误是: 对“std::allocator::allocator()”的未定义引用
我在project/JNI/下创建了一个Application.mk 与“APP_STL:= gnustl_static”
所以,任何想法,为什么未定义的参考。
环境是ubuntu10.4,NDK是r5b,
android jni ndk-build---------->the error is:
undefined reference to `std::allocator::allocator()'
i have created a Application.mk under project/JNI/
with "APP_STL := gnustl_static"
so, any ideas, why undefined reference.
the environment is ubuntu10.4, and THE NDK is r5b,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要保证“libgnustl_static.a”设置在您的库的末尾,因为它们似乎依赖于它:
示例:
我添加了相同的问题并用这个解决了它...
You need to guarantee that "libgnustl_static.a" is set on the end of your libs, since it seems that they depend on it:
Example:
I add the same issue and overcome it with this...