log4cpp 0.3.5rc3在MSVC6下无法编译通过,需要对源码进行修改。
1.在Priority.hh文件中
把
static const int MESSAGE_SIZE = 8;
改为
static const int MESSAGE_SIZE;
2. 在Priority.cpp文件中加入下面这行:
------------------------
const int Priority::MESSAGE_SIZE = 8;
本文介绍如何解决log4cpp0.3.5rc3在MSVC6环境下编译失败的问题。具体操作包括修改Priority.hh文件中的MESSAGE_SIZE定义,并在Priority.cpp文件中添加相应的初始化代码。
log4cpp 0.3.5rc3在MSVC6下无法编译通过,需要对源码进行修改。
1.在Priority.hh文件中
把
static const int MESSAGE_SIZE = 8;
改为
static const int MESSAGE_SIZE;
2. 在Priority.cpp文件中加入下面这行:
------------------------
const int Priority::MESSAGE_SIZE = 8;

被折叠的 条评论
为什么被折叠?