error: undefined reference to '__dso_handle'解决方案
/home/NDK/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a/libsupc++.a(eh_globals.o):eh_globals.cc:function _GLOBAL__sub_I_eh_globals.cc: error: undefined reference to '__dso_handle'
解决办法:
在main.c前面加上一条:
extern "C"{ void * __dso_handle = 0 ;}
成功解决!