- 积分
- 5016
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-2-11
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 网络小丁丁 于 2016-5-13 06:09 编辑
今天编译ANTLR的时候遇到这么一个报错
In file included from /root/Tools/antlr-2.7.7/lib/cpp/src/../../../lib/cpp/src/CharScanner.cpp:10:0:
/root/Tools/antlr-2.7.7/scripts/../lib/cpp/antlr/CharScanner.hpp:474:30: error:EOF’ was not declared in this scope
static const int EOF_CHAR = EOF;
^
/root/Tools/antlr-2.7.7/scripts/../lib/cpp/antlr/CharScanner.hpp: In member function ‘bool antlr::CharScannerLiteralsLess::operator()(const string&, const string&) const’:
/root/Tools/antlr-2.7.7/scripts/../lib/cpp/antlr/CharScanner.hpp:565:41: error:strcasecmp’ was not declared in this scope
return (strcasecmp(x.c_str(),y.c_str())<0);
^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> E R R O R <<
============================================================
g++ -c -I . -I /root/Tools/antlr-2.7.7/scripts/../lib/cpp /root/Tools/antlr-2.7.7/lib/cpp/src/../../../lib/cpp/src/CharScanner.cpp
============================================================
Got an error while trying to execute command above. Error
messages (if any) must have shown before. The exit code was:
exit(1)
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
make[3]: *** [/root/Tools/antlr-2.7.7/lib/cpp/src/CharScanner.o] Error 1
make[3]: Leaving directory `/root/Tools/antlr-2.7.7/lib/cpp/src'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/root/Tools/antlr-2.7.7/lib/cpp'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/Tools/antlr-2.7.7/lib'
make: *** [all] Error 1
这个问题怎么解决,是不是什么库没有装
|
|