启用异常C ++异常

由网友(我要做太阳!)分享简介:我试图让APP本土code为Android。本机code在CPLUSPLUS。每当我试着做,会出现以下错误。I am trying to make APP native code for Android.The Native code is in cplusplus.Whenever I try to mak...

我试图让APP本土code为Android。 本机code在CPLUSPLUS。 每当我试着做,会出现以下错误。

I am trying to make APP native code for Android. The Native code is in cplusplus. Whenever I try to make, the following error appears.

H236Plus.cpp:135:错误:异常处理禁用,使用-fexceptions启用

H236Plus.cpp:135: error: exception handling disabled, use -fexceptions to enable

我如何使用-fexceptions启用异常处理,及在哪里使用?

How do I use -fexceptions to enable exception handling, and where do i use it?

推荐答案

您需要建立与CrystaX的定制NDK 。它有完整的libstdc ++,RTTI和异常的支持。它通常用于Android开发,我知道最好的工具。

You need to build with CrystaX's custom NDK. It has full libstdc++, RTTI and exceptions support. It's generally the best tool for Android development I know.

阅读全文

相关推荐

最新文章