Enable Exception C++

后端 未结 8 639
醉梦人生
醉梦人生 2021-01-01 13:00

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:13

8条回答
  •  隐瞒了意图╮
    2021-01-01 13:23

    It depends on what runtime you are using. If you are not using system runtime and are building with ndk-build, you add any of these to your Android.mk file:

    • LOCAL_CPP_FEATURES += exceptions (Recommended)
    • LOCAL_CPPFLAGS += -fexceptions

    Also, you can add the following line to your Application.mk file:

    • APP_CPPFLAGS += -fexceptions

    There's more information in docs/CPLUSPLUS-SUPPORT.html in your NDK folder

提交回复
热议问题