0

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

该代码在 Visual Studio 2008 专业版上构建时运行良好。

在没有任何更改的情况下,我尝试在 VC++ Express 2008 版中构建代码,并引发大量错误(超过 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 
或者
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
由于所有错误似乎都是由于包含文件而不是来自编写的代码,所以我被卡住了。

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

4

1 回答 1

1

看起来您正在使用 Nebula2 :)
In nsystem.hremove"#define __cdecl"
如果某处出现如下定义,也会发生此错误:

#define __cdecl

#定义易失性

#define 常量

于 2011-04-26T09:27:23.703 回答