mmseg 安装错误 error: ’strncmp’ was not declared in this scope
环境:Ubuntu9.10
错误:
- 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] Error 1
- make[2]: Leaving directory `/lamp/mmseg-0.7.3/src'
- make[1]: *** [all-recursive] Error 1
- make[1]: Leaving directory `/lamp/mmseg-0.7.3'
- make: *** [all] Error 2
vi src/css/UnigramCorpusReader.cpp
添加:#include <string.h>posted on 2010-02-23 13:47 flyingchen 阅读(1846) 评论(0) 编辑 收藏 举报