css/UnigramCorpusReader.cpp: In member function 'virtual int css::UnigramCorpusReader::open(const char*, const char*)':
css/UnigramCorpusReader.cpp:89: error: 'strncmp' was not declared in this scope
make[2]: *** [UnigramCorpusReader.lo] 错误 1
make[2]:正在离开目录 `/home/qichunren/download/mmseg-0.7.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/qichunren/download/mmseg-0.7.3'
make: *** [all] 错误 2
-----------------------------------------------
在Ubuntu下编译安装mmseg-0.7.3会出错,解决的方法是:
手工编辑.src/css目录下UnigramCorpusReader.cpp 文件,在其第一行加上
#include <string.h>
然后重新 make,即可通过
css/UnigramCorpusReader.cpp:89: error: 'strncmp' was not declared in this scope
make[2]: *** [UnigramCorpusReader.lo] 错误 1
make[2]:正在离开目录 `/home/qichunren/download/mmseg-0.7.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/qichunren/download/mmseg-0.7.3'
make: *** [all] 错误 2
-----------------------------------------------
在Ubuntu下编译安装mmseg-0.7.3会出错,解决的方法是:
手工编辑.src/css目录下UnigramCorpusReader.cpp 文件,在其第一行加上
#include <string.h>
然后重新 make,即可通过