0
点赞
收藏
分享

微信扫一扫

makefile 的error looser throw specifier for ‘virtual ExceptionWithIflag::~ExceptionWithIflag

seis07:/projdata3/info_fil/yqxu/opinion_mining/code[88] > make 

 g++ -g -c main.c 

 In file included from main.c:12: 

 LBFGSCPP.h:18: error: looser throw specifier for ‘virtual ExceptionWithIflag::~ExceptionWithIflag()’ 

 /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/exception:63: error:   overriding ‘virtual std::exception::~exception() throw ()’ 
make: *** [main.o] Error 1


将~ExceptionWithIflag() 后面加上throw()即可

举报

相关推荐

0 条评论