Problem compiling (error: ‘strcmp’ was not declared in this scope)
Here is my terminal log from the compile shell script:
================ Compiling MorphGen ===================
make: Entering directory `/home/#####/RML/Source/MorphGen'
g++ -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MD -c -O3 -funroll-loops -fomit-frame-pointer -ftemplate-depth-35 MorphGen.cpp -o MorphGen.orst
In file included from ../LemmatizerLib/../MorphWizardLib/wizard.h:8,
from ../LemmatizerLib/StdMorph.h:12,
from MorphGen.cpp:7:
../LemmatizerLib/../MorphWizardLib/FormInfo.h: In member function ‘bool CLemmaInfo::operator==(const CLemmaInfo&) const’:
../LemmatizerLib/../MorphWizardLib/FormInfo.h:87: error: ‘strncmp’ was not declared in this scope
../LemmatizerLib/../MorphWizardLib/FormInfo.h: In member function ‘bool CLemmaInfo::operator<(const CLemmaInfo&) const’:
../LemmatizerLib/../MorphWizardLib/FormInfo.h:96: error: ‘strncmp’ was not declared in this scope
In file included from ../LemmatizerLib/MorphDictBuilder.h:9,
from MorphGen.cpp:10:
../LemmatizerLib/MorphDict.h: In member function ‘bool CMorphDict::IsLessMorphInterp::operator()(const CLemmaInfoAndLemma&, const char*) const’:
../LemmatizerLib/MorphDict.h:53: error: ‘strcmp’ was not declared in this scope
../LemmatizerLib/MorphDict.h: In member function ‘bool CMorphDict::IsLessMorphInterp::operator()(const char*, const CLemmaInfoAndLemma&) const’:
../LemmatizerLib/MorphDict.h:59: error: ‘strcmp’ was not declared in this scope
../LemmatizerLib/MorphDict.h: In member function ‘bool CMorphDict::IsLessMorphInterp::operator()(const CLemmaInfoAndLemma&, const CLemmaInfoAndLemma&) const’:
../LemmatizerLib/MorphDict.h:66: error: ‘strcmp’ was not declared in this scope
make: *** [MorphGen.orst] Error 1
make: Leaving directory `/home/#####/RML/Source/MorphGen'
======================
Error: cannot compile MorphGen
How do I get strcmp and strncmp included in this scope? Is the standard library not loading for some reason?
Thanks!
|