c++ - Android ndk undefined reference using crypto++ -
so have build static libary of crypto++ android. want build own libary , use crypto++ libary. build use android mk:
local_module := mylib local_src_files := staticlibrary3.cpp local_static_libraries := crypt local_ldlibs := -llog include $(build_shared_library) include $(clear_vars) local_module := crypt local_src_files := libcryptopp.a include $(prebuilt_static_library)
now when link libary project, lot of errors undefined referneces this:
string.c:600: error: undefined reference 'std::__stl_throw_length_error(char const*)
or
alloc.h:158: error: undefined reference 'std::__node_alloc::_m_allocate(unsigned int&)
what have done wrong?
your application.mk must define app_stl fits stl settings used prebuilt cryptopp library.
Comments
Post a Comment