鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 编程语言开发 > c++ > >

BUG-commoncpp2-1.8.0.tar.gz

来源:互联网 作者:佚名 时间:2013-10-17 15:27
1. 安装出错,提示: applog.cpp: In constructor 'ost::logger::logger(const char*, bool)': applog.cpp:300:43: error: 'S_IREAD' was not declared in this scope applog.cpp:300:53: error: 'S_IWRITE' was not declared in this scope applog.cpp:300:

1. 安装出错,,提示:

applog.cpp: In constructor 'ost::logger::logger(const char*, bool)':
applog.cpp:300:43: error: 'S_IREAD' was not declared in this scope
applog.cpp:300:53: error: 'S_IWRITE' was not declared in this scope
applog.cpp:300:61: error: 'mkfifo' was not declared in this scope
applog.cpp: In member function 'void ost::logger::logFileName(const char*, bool)':
applog.cpp:345:43: error: 'S_IREAD' was not declared in this scope
applog.cpp:345:53: error: 'S_IWRITE' was not declared in this scope
applog.cpp:345:61: error: 'mkfifo' was not declared in this scope
applog.cpp: In constructor 'ost::AppLog::AppLog(const char*, bool, bool)':
applog.cpp:459:46: error: 'S_IREAD' was not declared in this scope
applog.cpp:459:56: error: 'S_IWRITE' was not declared in this scope
applog.cpp:459:64: error: 'mkfifo' was not declared in this scope
applog.cpp: In member function 'void ost::AppLog::logFileName(const char*, bool, bool)':
applog.cpp:565:46: error: 'S_IREAD' was not declared in this scope
applog.cpp:565:56: error: 'S_IWRITE' was not declared in this scope
applog.cpp:565:64: error: 'mkfifo' was not declared in this scope
make[1]: *** [applog.lo] Error 1
make[1]: Leaving directory `/mnt/sda1/common/commoncpp2-1.8.1/src'
make: *** [check-recursive] Error 1
解决方法:编辑commoncpp2-1.8.0/src/applog.cpp,添加如下语句:
#include <sys/stat.h>

网友评论
<