Android ndk-build:“错误:未定义引用'std :: __ throw_bad_alloc()”

时间:2013-07-30 06:28:56

标签: android android-ndk

我正在尝试为我的本机代码编译我的JNI层。但是ndk-build会出现以下错误:

android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/libtasr.a(rs_rescoreMngr.o): in function std::_Vector_base<NodeLabelAndTime_, std::allocator<NodeLabelAndTime_> >::_M_allocate(unsigned int) [clone .isra.258]:D:/Android/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/ext/new_allocator.h:90: error: undefined reference to 'std::__throw_bad_alloc()'

我的Application.mk有以下内容:

APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a
APP_PLATFORM := android-8

此上下文中的大多数帖子建议使用'APP_STL:= gnustl_static',正如我已经做过的那样,但仍然没有解决错误,如果有人对此有任何答案/解决方案,请告诉我。

提前致谢

0 个答案:

没有答案
相关问题