Linker errors in Android NDK (undefined reference to `__cxa_end_cleanup')

前端 未结 5 2224
灰色年华
灰色年华 2021-02-07 03:43

I\'m getting this output after adding in a set of code from a colleague:

./obj/local/armeabi/objs/jniWrapper/native.o: In function `_Vector_base\':
D:/opt/androi         


        
5条回答
  •  -上瘾入骨i
    2021-02-07 04:01

    After reading android-ndk/docs/CPLUSPLUS-SUPPORT.html I found that there a couple more libraries that I can link to:

                 C++       C++   Standard
              Exceptions  RTTI    Library
    
    system        no       no        no
    gabi++        no      yes        no
    stlport       no      yes       yes
    gnustl       yes      yes       yes
    

    This stops my linker errors (and pushes the build onto a new set of errors :))

    Application.mk

    APP_STL := gnustl_static
    

提交回复
热议问题