海南网站网络推广,品牌形象宣传策划方案,wordpress设置登陆口,wordpress 加描述C工程有时候会进行异常处理#xff0c;所以在编译的过程中#xff0c;可能会遇到这种提示:exception handling disabled, use-fexceptions to enable这是编译选项没有支持错误处理导致的。这种情况下要做两处修改#xff1a;1) Android.mk里面增加#xff1a;LOCAL_CPPFLAG…C工程有时候会进行异常处理所以在编译的过程中可能会遇到这种提示:exception handling disabled, use-fexceptions to enable这是编译选项没有支持错误处理导致的。这种情况下要做两处修改1) Android.mk里面增加LOCAL_CPPFLAGS -fexceptions -lstdc2) Application.mk里面APP_STL :gnustl_static而不是stlport_static对于原因网上有大神提供了很好的解释参见http://stackoverflow.com/questions/9226513/linker-errors-in-android-ndk-undefined-reference-to-cxa-end-cleanupAfter readingandroid-ndk/docs/CPLUSPLUS-SUPPORT.html I found that there a couplemore libraries that I can link to:C C StandardExceptionsRTTI Librarysystem no no nogabi no yes nostlport no yes yesgnustl yes yes yesIm not sure if using the gnustl library isgoing to help, but it certainly does stop the linker errors andmoves the build problems onto a different set oferrors.可见gnustl支持的特性是最多的所以以后再写application.mk的时候 尽量用 gnustl