在 Visual 2005 上构建 log4cxx

发布于 2024-07-30 12:49:21 字数 1103 浏览 5 评论 0原文

当我根据说明在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

樱花坊 2024-08-06 12:49:21

我记得在 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.

﹎☆浅夏丿初晴 2024-08-06 12:49:21

该错误看起来很像缺少一两个#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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文