Overview
Features
Download
Documentation
Community
Add-Ons & Services

Problem using POCO with Android NDK App

Please post support and help requests here.

Problem using POCO with Android NDK App

Postby rgngl » 11 May 2013, 00:08

Hi,

I have built the POCO library using the instructions on the web page: http://www.appinf.com/docs/poco/99300-A ... Notes.html .
POCO compiles fine and I see the libPocoFoundation.a static library built. I copied this library file and the headers to my build folder and try to link libPocoFoundation to my native android app.

Here's what I have in my Android.mk:
Code: Select all
POCO_PATH := ../external/poco/lib/Android/armeabi
#Some other stuff
# POCO
LOCAL_PATH := $(POCO_PATH)
include $(CLEAR_VARS)
LOCAL_MODULE := libPocoFoundation
LOCAL_SRC_FILES := libPocoFoundation.a
include $(PREBUILT_STATIC_LIBRARY)

#my source files etc.

LOCAL_CFLAGS    := -std=c++11 -DPOCO_ANDROID -D__ANDROID__ -Wno-psabi -I"../../GamePlay/external-deps/lua/include" -I"../../GamePlay/external-deps/bullet/include" -I"../../GamePlay/external-deps/libpng/include" -I"../../GamePlay/external-deps/oggvorbis/include" -I"../../GamePlay/external-deps/openal/include" -I"../../GamePlay/gameplay/src" -I"../external/poco/include"

LOCAL_STATIC_LIBRARIES := android_native_app_glue libgameplay libpng libzlib liblua libbullet libvorbis libOpenAL libPocoFoundation


and Application.mk:
Code: Select all
APP_STL     := stlport_static
APP_CPPFLAGS += -fexceptions -frtti


The compilation goes without error but while linking I get the following errors:
Code: Select all
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Task.o): in function .LTHUNK0:Task.cpp(.text._ZN4Poco4TaskD2Ev+0x58): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Task.o): in function .LTHUNK0:Task.cpp(.text._ZN4Poco4TaskD2Ev+0x88): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(TaskManager.o): in function Poco::TaskManager::start(Poco::Task*):TaskManager.cpp(.text._ZN4Poco11TaskManager5startEPNS_4TaskE+0x42): error: undefined reference to 'std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(TaskManager.o): in function Poco::TaskManager::start(Poco::Task*):TaskManager.cpp(.text._ZN4Poco11TaskManager5startEPNS_4TaskE+0xb6): error: undefined reference to 'std::__detail::_List_node_base::_M_unhook()'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(TaskManager.o): in function Poco::TaskManager::taskList() const:TaskManager.cpp(.text._ZNK4Poco11TaskManager8taskListEv+0x44): error: undefined reference to 'std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(TaskManager.o): in function Poco::TaskManager::taskFinished(Poco::Task*):TaskManager.cpp(.text._ZN4Poco11TaskManager12taskFinishedEPNS_4TaskE+0x64): error: undefined reference to 'std::__detail::_List_node_base::_M_unhook()'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::PooledThread::~PooledThread():ThreadPool.cpp(.text._ZN4Poco12PooledThreadD2Ev+0x64): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::PooledThread::~PooledThread():ThreadPool.cpp(.text._ZN4Poco12PooledThreadD2Ev+0xa8): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::PooledThread::start(Poco::Thread::Priority, Poco::Runnable&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):ThreadPool.cpp(.text._ZN4Poco12PooledThread5startENS_6Thread8PriorityERNS_8RunnableERKSs+0x32): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::PooledThread::start(Poco::Thread::Priority, Poco::Runnable&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):ThreadPool.cpp(.text._ZN4Poco12PooledThread5startENS_6Thread8PriorityERNS_8RunnableERKSs+0x90): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::PooledThread::start(Poco::Thread::Priority, Poco::Runnable&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):ThreadPool.cpp(.text._ZN4Poco12PooledThread5startENS_6Thread8PriorityERNS_8RunnableERKSs+0x9a): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::PooledThread::start(Poco::Thread::Priority, Poco::Runnable&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):ThreadPool.cpp(.text._ZN4Poco12PooledThread5startENS_6Thread8PriorityERNS_8RunnableERKSs+0xa6): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::PooledThread::start(Poco::Thread::Priority, Poco::Runnable&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):ThreadPool.cpp(.text._ZN4Poco12PooledThread5startENS_6Thread8PriorityERNS_8RunnableERKSs+0xbe): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::PooledThread::start(Poco::Thread::Priority, Poco::Runnable&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):ThreadPool.cpp(.text._ZN4Poco12PooledThread5startENS_6Thread8PriorityERNS_8RunnableERKSs+0xe0): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::ThreadPool::~ThreadPool():ThreadPool.cpp(.text._ZN4Poco10ThreadPoolD2Ev+0x44): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::ThreadPool::~ThreadPool():ThreadPool.cpp(.text._ZN4Poco10ThreadPoolD2Ev+0x68): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::ThreadPool::createThread():ThreadPool.cpp(.text._ZN4Poco10ThreadPool12createThreadEv+0xa): error: undefined reference to 'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::ThreadPool::createThread():ThreadPool.cpp(.text._ZN4Poco10ThreadPool12createThreadEv+0x18): error: undefined reference to 'std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::ThreadPool::createThread():ThreadPool.cpp(.text._ZN4Poco10ThreadPool12createThreadEv+0x24): error: undefined reference to 'std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::ThreadPool::createThread():ThreadPool.cpp(.text._ZN4Poco10ThreadPool12createThreadEv+0x30): error: undefined reference to 'std::basic_ostream<char, std::char_traits<char> >::operator<<(int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::ThreadPool::createThread():ThreadPool.cpp(.text._ZN4Poco10ThreadPool12createThreadEv+0x3a): error: undefined reference to 'std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function Poco::ThreadPool::createThread():ThreadPool.cpp(.text._ZN4Poco10ThreadPool12createThreadEv+0x42): error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> >::reserve(unsigned int):ThreadPool.cpp(.text._ZNSt6vectorIPN4Poco12PooledThreadESaIS2_EE7reserveEj+0x72): error: undefined reference to 'std::__throw_length_error(char const*)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> >::_M_check_len(unsigned int, char const*) const:ThreadPool.cpp(.text._ZNKSt6vectorIPN4Poco12PooledThreadESaIS2_EE12_M_check_lenEjPKc+0x34): error: undefined reference to 'std::__throw_length_error(char const*)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<Poco::PooledThread**, std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> > >, Poco::PooledThread* const&):ThreadPool.cpp(.text._ZNSt6vectorIPN4Poco12PooledThreadESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_+0xd0): error: undefined reference to 'std::__throw_bad_alloc()'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadPool.o): in function void std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> >::_M_range_insert<__gnu_cxx::__normal_iterator<Poco::PooledThread**, std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> > > >(__gnu_cxx::__normal_iterator<Poco::PooledThread**, std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> > >, __gnu_cxx::__normal_iterator<Poco::PooledThread**, std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> > >, __gnu_cxx::__normal_iterator<Poco::PooledThread**, std::vector<Poco::PooledThread*, std::allocator<Poco::PooledThread*> > >, std::forward_iterator_tag):ThreadPool.cpp(.text._ZNSt6vectorIPN4Poco12PooledThreadESaIS2_EE15_M_range_insertIN9__gnu_cxx17__normal_iteratorIPS2_S4_EEEEvS9_T_SA_St20forward_iterator_tag+0x1a4): error: undefined reference to 'std::__throw_bad_alloc()'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Bugcheck.o): in function Poco::Bugcheck::what(char const*, char const*, int):Bugcheck.cpp(.text._ZN4Poco8Bugcheck4whatEPKcS2_i+0x10): error: undefined reference to 'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Bugcheck.o): in function Poco::Bugcheck::what(char const*, char const*, int):Bugcheck.cpp(.text._ZN4Poco8Bugcheck4whatEPKcS2_i+0x24): error: undefined reference to 'std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Bugcheck.o): in function Poco::Bugcheck::what(char const*, char const*, int):Bugcheck.cpp(.text._ZN4Poco8Bugcheck4whatEPKcS2_i+0x64): error: undefined reference to 'std::basic_ostream<char, std::char_traits<char> >::operator<<(int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Bugcheck.o): in function Poco::Bugcheck::what(char const*, char const*, int):Bugcheck.cpp(.text._ZN4Poco8Bugcheck4whatEPKcS2_i+0x6c): error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Bugcheck.o): in function Poco::Bugcheck::what(char const*, char const*, int):Bugcheck.cpp(.text._ZN4Poco8Bugcheck4whatEPKcS2_i+0x8c): error: undefined reference to 'std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Bugcheck.o): in function Poco::Bugcheck::bugcheck(char const*, char const*, int):Bugcheck.cpp(.text._ZN4Poco8Bugcheck8bugcheckEPKcS2_i+0x22): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Bugcheck.o): in function Poco::Bugcheck::bugcheck(char const*, char const*, int):Bugcheck.cpp(.text._ZN4Poco8Bugcheck8bugcheckEPKcS2_i+0x32): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Exception.o): in function Poco::Exception::Exception(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int):Exception.cpp(.text._ZN4Poco9ExceptionC2ERKSsS2_i+0x3e): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Exception.o): in function Poco::Exception::operator=(Poco::Exception const&):Exception.cpp(.text._ZN4Poco9ExceptionaSERKS0_+0x1a): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Exception.o): in function Poco::Exception::displayText() const:Exception.cpp(.text._ZNK4Poco9Exception11displayTextEv+0x3a): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Exception.o): in function Poco::Exception::extendedMessage(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):Exception.cpp(.text._ZN4Poco9Exception15extendedMessageERKSs+0x1e): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(NotificationCenter.o): in function std::vector<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> >, std::allocator<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> > > >::vector(std::vector<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> >, std::allocator<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> > > > const&):NotificationCenter.cpp(.text._ZNSt6vectorIN4Poco9SharedPtrINS0_16AbstractObserverENS0_16ReferenceCounterENS0_13ReleasePolicyIS2_EEEESaIS6_EEC2ERKS8_+0x5e): error: undefined reference to 'std::__throw_bad_alloc()'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(NotificationCenter.o): in function std::vector<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> >, std::allocator<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> > > >::_M_check_len(unsigned int, char const*) const:NotificationCenter.cpp(.text._ZNKSt6vectorIN4Poco9SharedPtrINS0_16AbstractObserverENS0_16ReferenceCounterENS0_13ReleasePolicyIS2_EEEESaIS6_EE12_M_check_lenEjPKc+0x34): error: undefined reference to 'std::__throw_length_error(char const*)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(NotificationCenter.o): in function std::vector<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> >, std::allocator<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> >*, std::vector<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> >, std::allocator<Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> > > > >, Poco::SharedPtr<Poco::AbstractObserver, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::AbstractObserver> > const&):NotificationCenter.cpp(.text._ZNSt6vectorIN4Poco9SharedPtrINS0_16AbstractObserverENS0_16ReferenceCounterENS0_13ReleasePolicyIS2_EEEESaIS6_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS6_S8_EERKS6_+0x1b6): error: undefined reference to 'std::__throw_bad_alloc()'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Thread.o): in function Poco::Thread::makeName():Thread.cpp(.text._ZN4Poco6Thread8makeNameEv+0xc): error: undefined reference to 'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Thread.o): in function Poco::Thread::makeName():Thread.cpp(.text._ZN4Poco6Thread8makeNameEv+0x22): error: undefined reference to 'std::basic_ostream<char, std::char_traits<char> >::operator<<(int)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Thread.o): in function Poco::Thread::makeName():Thread.cpp(.text._ZN4Poco6Thread8makeNameEv+0x2a): error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(Thread.o): in function Poco::Thread::setName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&):Thread.cpp(.text._ZN4Poco6Thread7setNameERKSs+0x16): error: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadLocal.o): in function Poco::ThreadLocalStorage::~ThreadLocalStorage():ThreadLocal.cpp(.text._ZN4Poco18ThreadLocalStorageD2Ev+0x18): error: undefined reference to 'std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadLocal.o): in function std::_Rb_tree<void const*, std::pair<void const* const, Poco::TLSAbstractSlot*>, std::_Select1st<std::pair<void const* const, Poco::TLSAbstractSlot*> >, std::less<void const*>, std::allocator<std::pair<void const* const, Poco::TLSAbstractSlot*> > >::_M_insert_(std::_Rb_tree_node_base const*, std::_Rb_tree_node_base const*, std::pair<void const* const, Poco::TLSAbstractSlot*> const&):ThreadLocal.cpp(.text._ZNSt8_Rb_treeIPKvSt4pairIKS1_PN4Poco15TLSAbstractSlotEESt10_Select1stIS7_ESt4lessIS1_ESaIS7_EE10_M_insert_EPKSt18_Rb_tree_node_baseSG_RKS7_+0x36): error: undefined reference to 'std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
/Users/ustun/dev/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ../external/poco/lib/Android/armeabi/libPocoFoundation.a(ThreadLocal.o): in function std::_Rb_tree<void const*, std::pair<void const* const, Poco::TLSAbstractSlot*>, std::_Select1st<std::pair<void const* const, Poco::TLSAbstractSlot*> >, std::less<void const*>, std::allocator<std::pair<void const* const, Poco::TLSAbstractSlot*> > >::_M_insert_unique(std::pair<void const* const, Poco::TLSAbstractSlot*> const&):ThreadLocal.cpp(.text._ZNSt8_Rb_treeIPKvSt4pairIKS1_PN4Poco15TLSAbstractSlotEESt10_Select1stIS7_ESt4lessIS1_ESaIS7_EE16_M_insert_uniqueERKS7_+0x48): error: undefined reference to 'std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
collect2: ld returned 1 exit status


I'd really appreciate to hear what I might be doing wrong here. I'm compiling under OS X 10.8.

Thanks in advance!
rgngl
 
Posts: 1
Joined: 10 May 2013, 23:58

Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests