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

前端 未结 5 2223
灰色年华
灰色年华 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条回答
  •  终归单人心
    2021-02-07 03:52

    In my case, the error undefined reference to __cxa_end_cleanup shows up when I add -fexceptions to the compiler options. When removing that option, the undefined ref goes away, but that means you have to clear your code from exception statements.

提交回复
热议问题