I am trying to compile my JNI level for my own code. But ndk-build gives the following error:
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()'
My Application.mk has the following contents:
APP_STL := gnustl_static APP_CPPFLAGS := -frtti -fexceptions APP_ABI := armeabi-v7a APP_PLATFORM := android-8
Most posts in this context suggest using "APP_STL: = gnustl_static", as I already did, but the error has not been resolved yet, let me know if anyone has an answer / solution.
Thanks in advance
source share