从 VS2008 Prof 迁移到 VC 时出现问题++快报2008
我刚刚从我的朋友那里接手了游戏开发。开发是使用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
orerror 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您正在使用 Nebula2 :)
在
nsystem.h
中删除“#define __cdecl”
如果某处出现如下定义,也可能会发生此错误:
Looks like you are using Nebula2 :)
In
nsystem.h
remove"#define __cdecl"
This error can also occur if somewhere appears defines like: