title: Linker errors in Android NDK (undefined reference to `__cxa_end_cleanup')
body: <p>I'm getting this output after adding in a set of code from a colleague:</p>
  
  <pre><code>./obj/local/armeabi/objs/jniWrapper/native.o: In function `_Vector_base':
  D:/opt/android-ndk/sources/cxx-stl/stlport/stlport/stl/_vector.h:73: undefined reference to `__cxa_end_cleanup'
  ./obj/local/armeabi/objs/jniWrapper/native.o:(.ARM.extab.text._ZNSt6vectorIhSaIhEEC1ERKS1_[std::vector&lt;unsigned char, std::allocator&lt;unsigned char&gt; &gt;::vector(std::vector&lt;unsigned char, std::allocator&lt;unsigned char&gt; &gt; const&amp;)]+0x0): undefined reference to `__gxx_personality_v0'
  ./obj/local/armeabi/objs/jniWrapper/native.o: In function `std::__node_alloc::deallocate(void*, unsigned int)':
  D:/opt/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: undefined reference to `__cxa_end_cleanup'
  ./obj/local/armeabi/objs/jniWrapper/native.o:(.ARM.extab.text._ZNSt4priv12_String_baseIcSaIcEED2Ev[std::priv::_String_base&lt;char, std::allocator&lt;char&gt; &gt;::~_String_base()]+0x0): undefined reference to `__gxx_personality_v0'
  ./obj/local/armeabi/objs/jniWrapper/native.o: In function `basic_string':
  D:/opt/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string.c:643: undefined reference to `__cxa_end_cleanup'
  </code></pre>
  
  <p>This is caused because I don't have access to the correct STL.</p>
  
  <p>To my knowledge there are only three I can choose from (<code>stlport_static</code>, <code>stlport_shared</code>, <code>system</code>) as set by <code>APP_STL := stlport_static</code> in <code>Application.mk</code>.</p>
  
  <p>Is there another library available to the NDK?</p>