在 Visual 2005 上构建 log4cxx
当我根据说明在 Visual 2005 上构建 log4cxx 时 http://logging.apache.org /log4cxx/building/vstudio.html,我收到以下错误;
1>------ Build started: Project: apr, Configuration: Debug Win32 ------
1>Compiling...
1>userinfo.c
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\rpcndr.h(145) : error C2059: syntax error : ':'
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\rpcndr.h(898) : error C2059: syntax error : ','
.
.
.
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\rpcndr.h(3119) : fatal error C1003: error count exceeds 100; stopping compilation
当单击第一个错误时,移动到下面的代码
/****************************************************************************
* Other MIDL base types / predefined types:
****************************************************************************/
typedef unsigned char byte;
typedef ::byte cs_byte; // error indicates here
有什么评论吗?
谢谢
When I build the log4cxx on Visual 2005 according to instructions http://logging.apache.org/log4cxx/building/vstudio.html, I am getting error below;
1>------ Build started: Project: apr, Configuration: Debug Win32 ------
1>Compiling...
1>userinfo.c
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\rpcndr.h(145) : error C2059: syntax error : ':'
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\rpcndr.h(898) : error C2059: syntax error : ','
.
.
.
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\rpcndr.h(3119) : fatal error C1003: error count exceeds 100; stopping compilation
When clicking the first error moves to code below
/****************************************************************************
* Other MIDL base types / predefined types:
****************************************************************************/
typedef unsigned char byte;
typedef ::byte cs_byte; // error indicates here
Is there any comment??
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我记得在 Windows 中构建 log4cxx.0.10.0 时遇到问题(我不记得它是否与您的完全相同),我按照此 步骤。
我希望这有帮助。
I remember having a problem building log4cxx.0.10.0 in windows (I don't remember if it was the exactly the same one you have) and I followed this steps.
I hope that helps.
该错误看起来很像缺少一两个#define。 您是否按照构建说明中的说明成功打开并转换了项目文件?
The error looks very much like there is a #define or two missing. Did you successfully open and convert the project files as described in the build instructions?