下载了最新版本的ICTCLAS2015(NLPIR)
我是在centos6.5机上用codeblocks开发C++程序,导入了NLPIR.h头文件,以及加载了libNLPIR.so库,
但是始终编译不通过,报错是:
NLPIR.h:105: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:121: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:140: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:157: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:172: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:188: 错误:expected constructor, destructor or type conversion before '(' token
我是在centos6.5机上用codeblocks开发C++程序,导入了NLPIR.h头文件,以及加载了libNLPIR.so库,
但是始终编译不通过,报错是:
NLPIR.h:105: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:121: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:140: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:157: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:172: 错误:expected constructor, destructor or type conversion before '(' token
NLPIR.h:188: 错误:expected constructor, destructor or type conversion before '(' token
......
换了一台机器进行测试,居然编译通过,运行成功,推断是机器原因,后来查找资料,发现一哥们也遇到类似的问题,我根据他的思路将下述部分
#ifdef OS_LINUX