Error:error: undefined reference to 'std::logic_error::logic_error(char const*)'
Error:error: undefined reference to 'std::logic_error::logic_error(char const*)'
Error:error: undefined reference to 'std::logic_error::logic_error(char const*)'
Error:error: undefined reference to 'std::logic_error::logic_error(char const*)'
Error:error: undefined reference to 'std::__ndk1::ios_base::init(void*)'
Error:error: undefined reference to 'std::__ndk1::locale::locale()'
Error:error: undefined reference to 'std::__ndk1::ios_base::getloc() const'
Error:error: undefined reference to 'std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const'
Error:error: undefined reference to 'std::__ndk1::locale::~locale()'
Error:error: undefined reference to 'std::__ndk1::ios_base::getloc() const'
Error:error: undefined reference to 'std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const'
Error:error: undefined reference to 'std::__ndk1::locale::~locale()'
Error:error: undefined reference to 'std::__ndk1::locale::~locale()'
Error:error: undefined reference to 'std::__ndk1::ios_base::~ios_base()'
Error:error: undefined reference to 'std::__ndk1::locale::~locale()'
Error:error: undefined reference to 'std::__ndk1::ios_base::~ios_base()'
Error:error: undefined reference to 'std::__ndk1::ctype<char>::id'
Error:error: undefined reference to 'std::__ndk1::ctype<char>::id'
Error:error: undefined reference to 'std::__ndk1::ios_base::~ios_base()'
Error:error: undefined reference to 'std::__ndk1::ios_base::~ios_base()'
Error:error: undefined reference to 'std::__ndk1::ios_base::init(void*)'
Error:error: undefined reference to 'std::__ndk1::locale::locale()'
Error:error: undefined reference to 'std::__ndk1::ios_base::init(void*)'
Error:error: undefined reference to 'std::__ndk1::locale::locale()'
Error:error: undefined reference to 'std::__ndk1::ios_base::getloc() const'
Error:error: undefined reference to 'std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const'
Error:error: undefined reference to 'std::__ndk1::ios_base::clear(unsigned int)'
Error:error: undefined reference to 'std::__ndk1::ios_base::__set_badbit_and_consider_rethrow()'
Error:error: undefined reference to 'std::__ndk1::ctype<char>::id'
Error:error: undefined reference to 'std::__ndk1::ios_base::clear(unsigned int)'
Error:error: undefined reference to 'std::__ndk1::ios_base::clear(unsigned int)'
Error:error: undefined reference to 'std::__ndk1::ios_base::__set_badbit_and_consider_rethrow()'
Error:error: undefined reference to 'std::__ndk1::ios_base::clear(unsigned int)'
Error:error: undefined reference to 'std::__ndk1::ios_base::__set_badbit_and_consider_rethrow()'
Error:error: undefined reference to 'std::__ndk1::ios_base::init(void*)'
Error:error: undefined reference to 'std::__ndk1::locale::locale()'
Error:error: undefined reference to 'std::__ndk1::ios_base::getloc() const'
Error:error: undefined reference to 'std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const'
Error:error: undefined reference to 'std::__ndk1::ctype<char>::id'
Error:error: undefined reference to 'std::__ndk1::ios_base::__set_badbit_and_consider_rethrow()'
Error:error: undefined reference to 'std::__ndk1::num_put<char, std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id'
Error:error: undefined reference to 'std::__ndk1::locale::locale(std::__ndk1::locale const&)'
Error:error: undefined reference to 'std::__ndk1::locale::has_facet(std::__ndk1::locale::id&) const'
Error:error: undefined reference to 'std::__ndk1::locale::locale(std::__ndk1::locale const&)'
Error:error: undefined reference to 'std::__ndk1::codecvt<char, char, mbstate_t>::id'
Error:error: undefined reference to 'std::__ndk1::codecvt<char, char, mbstate_t>::id'
Error:error: undefined reference to 'std::__ndk1::codecvt<char, char, mbstate_t>::id'
Error:error: undefined reference to 'std::bad_cast::bad_cast()'
Error:error: undefined reference to 'std::bad_cast::bad_cast()'
Error:error: undefined reference to 'std::bad_cast::bad_cast()'
Error:error: undefined reference to 'std::bad_cast::bad_cast()'
Error:error: undefined reference to 'std::__ndk1::cerr'
Error:error: undefined reference to 'std::__ndk1::cout'
Error:error: undefined reference to 'std::__ndk1::cerr'
Error:error: undefined reference to 'std::__ndk1::num_put<char, std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id'
Error:error: undefined reference to 'std::__ndk1::num_put<char, std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id'
Error:error: undefined reference to 'std::__ndk1::num_put<char, std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id'
Error:error: undefined reference to 'std::exception_ptr::~exception_ptr()'
Error:error: undefined reference to 'std::exception_ptr::exception_ptr(std::exception_ptr const&)'
Error:error: undefined reference to 'std::rethrow_exception(std::exception_ptr)'
Error:error: undefined reference to 'std::exception_ptr::~exception_ptr()'
Error:error: undefined reference to 'std::exception_ptr::~exception_ptr()'
Error:error: undefined reference to 'std::exception_ptr::operator=(std::exception_ptr const&)'
Error:error: undefined reference to 'std::exception_ptr::~exception_ptr()'
Error:error: undefined reference to 'std::__ndk1::num_get<char, std::__ndk1::istreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id'
Error:error: undefined reference to 'std::exception_ptr::exception_ptr(std::exception_ptr const&)'
Error:error: undefined reference to 'std::rethrow_exception(std::exception_ptr)'
Error:error: undefined reference to 'std::exception_ptr::exception_ptr(std::exception_ptr const&)'
Error:error: undefined reference to 'std::rethrow_exception(std::exception_ptr)'
Error:error: undefined reference to 'std::exception_ptr::exception_ptr(std::exception_ptr const&)'
Error:error: undefined reference to 'std::rethrow_exception(std::exception_ptr)'
Error:error: undefined reference to 'std::runtime_error::runtime_error(char const*)'
Error:error: undefined reference to 'std::bad_alloc::bad_alloc()'
Error:error: undefined reference to 'std::runtime_error::runtime_error(char const*)'
Error:error: undefined reference to 'std::runtime_error::runtime_error(char const*)'
Error:error: undefined reference to 'std::runtime_error::runtime_error(char const*)'
Error:error: undefined reference to 'std::runtime_error::runtime_error(char const*)'
Error:error: undefined reference to 'std::runtime_error::runtime_error(char const*)'
Error:error: undefined reference to 'std::bad_alloc::bad_alloc()'
Error:error: undefined reference to 'std::__ndk1::cerr'
Error:error: linker command failed with exit code 1 (use -v to see invocation)
https://stackoverflow.com/questions/49183886/error-undefined-reference-to-std-ndk1localelocale
参考这个网址,意思是说gnustl过时了,应该用c++_shared。于是把Application.mk中APP_STL := gnustl_static改为APP_STL := c++_shared编译通过。