简体   繁体   English

Crystax获取链接错误

[英]Crystax get linking error

I want to compile my code with Crystax because NDK does not have C++ exceptions but when I tried to compile my code with Crystax I get this error (it works fine with standard NDK): 我想用Crystax编译我的代码,因为NDK没有C ++异常,但是当我尝试用Crystax编译我的代码时,我收到此错误(在标准NDK上可以正常使用):

std::basic_ios<char, std::char_traits<char> >]+0x8): undefined reference to `typeinfo for std::ios_base'

I already tried to add -lstdc++ to my makefile. 我已经尝试将-lstdc++添加到我的makefile中。

How can I get this to build? 我该如何构建?

在application.mk中使用APP_STL:= gnustl_static将解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM