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

来源:互联网 发布:mysql创建自增长主键 编辑:程序博客网 时间:2024/06/09 12:34
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()即可

原创粉丝点击