态度决定高度、企图决定版图、格局决定结局

导航

mmseg 安装错误 error: ’strncmp’ was not declared in this scope

环境:Ubuntu9.10

错误:

  1. css/UnigramCorpusReader.cpp: In member function 'virtual int css::UnigramCorpusReader::open(const char*, const char*)':
  2. css/UnigramCorpusReader.cpp:89: error: 'strncmp' was not declared in this scope
  3. make[2]: *** [UnigramCorpusReader.lo] Error 1
  4. make[2]: Leaving directory `/lamp/mmseg-0.7.3/src'
  5. make[1]: *** [all-recursive] Error 1
  6. make[1]: Leaving directory `/lamp/mmseg-0.7.3'
  7. make: *** [all] Error 2
解决:

vi src/css/UnigramCorpusReader.cpp 

添加:#include <string.h>

posted on 2010-02-23 13:47  flyingchen  阅读(1846)  评论(0编辑  收藏  举报