您当前的位置: 首页 > 

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

error: exception handling disabled, use -fexceptions to enable

柳鲲鹏 发布时间:2020-03-22 11:10:21 ,浏览量:0

  编译错误如下:

java/android/tinyWRAP_wrap.cxx: In member function 'virtual int SwigDirector_DDebugCallback::OnDebugInfo(const char*)':
java/android/tinyWRAP_wrap.cxx:740:52: error: exception handling disabled, use -fexceptions to enable
       throw Swig::DirectorException(jenv, swigerror);
                                                    ^
Makefile:778: recipe for target 'java/android/libtinyWRAP_la-tinyWRAP_wrap.lo' failed

  怎么办?

CPPFLAGS=-fno-exceptions
改成
CPPFLAGS=-fexceptions

或者

Android.mk
LOCAL_CPPFLAGS += -fexceptions

Application.mk
APP_CPPFLAGS  += -fexceptions

 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0497s