从 VS2008 Prof 迁移到 VC 时出现问题++快报2008

发布于 2024-10-16 20:00:12 字数 862 浏览 3 评论 0原文

我刚刚从我的朋友那里接手了游戏开发。开发是使用VC++完成的。

该代码在 Visual Studio 2008 Professional Edition 上构建时运行良好。

在没有任何更改的情况下,我尝试在 VC++ Express 2008 Edition 中构建代码,但它抛出了大量错误(超过 100 个)。全部都是:

 error C2953: 'std::tr1::_Result_of1<Rx(_thiscall _Arg0::* )(void),_Farg0&>' : class template has already been defined C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xxresult  106 
or
error C2995: 'std::tr1::_Mem_fn1<_Rx,Rx(_thiscall _Arg0::* )(void),_Arg0> std::tr1::mem_fn(Rx (_thiscall _Arg0::* )(void))' : function template has already been defined C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xxmem_fn  47
Since all the errors seem due to the include files and not from the Code written, I am stuck.

任何正确方向的帮助将不胜感激。感谢您抽出时间。

I have just taken over game development from my friend. The development is done using VC++.

The Code worked perfectly when it was build on Visual Studio 2008 Professional Edition.

Without any changes, I tried to build the code in VC++ Express 2008 Edition and its throwing numerous errors (more than 100). All are either:

 error C2953: 'std::tr1::_Result_of1<Rx(_thiscall _Arg0::* )(void),_Farg0&>' : class template has already been defined C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xxresult  106 

or

error C2995: 'std::tr1::_Mem_fn1<_Rx,Rx(_thiscall _Arg0::* )(void),_Arg0> std::tr1::mem_fn(Rx (_thiscall _Arg0::* )(void))' : function template has already been defined C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xxmem_fn  47

Since all the errors seem due to the include files and not from the Code written, I am stuck.

Any help in the right direction would be appreciated. Thank you for your time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

抚笙 2024-10-23 20:00:12

看起来您正在使用 Nebula2 :)
nsystem.h中删除“#define __cdecl”
如果某处出现如下定义,也可能会发生此错误:

#define __cdecl

#定义易失性

#定义常量

Looks like you are using Nebula2 :)
In nsystem.h remove "#define __cdecl"
This error can also occur if somewhere appears defines like:

#define __cdecl

#define volatile

#define const

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