我需要构建一个由其他人在2005年编写的visual C++解决方案(.dsp VC++ 7.1)。我试图编译VS2010试用版中的解决方案,但它是给我一些错误概述如下:在没有Visual C++的情况下编译C++ Visual C++ 7.1解决方案
error C3867: 'CServerSocket::SelfDestruct': function call missing argument list; use '&CServerSocket::SelfDestruct' to create a pointer to member
error C2039: 'iterator_category' : is not a member of 'CommandDispatchInserter' c:\program files\microsoft visual studio 10.0\vc\include\xutility
error C2146: syntax error : missing ';' before identifier 'iterator_category' c:\program files\microsoft visual studio 10.0\vc\include\xutility
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 10.0\vc\include\xutility
error C2602: 'std::iterator_traits<_Iter>::iterator_category' is not a member of a base class of 'std::iterator_traits<_Iter>' c:\program files\microsoft visual studio 10.0\vc\include\xutility
它从我的调查,似乎从VS2005起,有哪些是造成错误各种库的不同实现,我觉得代码是相当不符合标准,这也是一个因素。与其修正代码以适应VS的要求(我对此相当无知),我想知道是否有办法编译这个i nit的当前状态,缺少安装VS2003的实例。我曾尝试使用minGW for windows,但没有运气。它似乎不喜欢MFC库。有没有人对最有生产力的路线有任何建议?
在此先感谢
发布报告这些错误的代码会有所帮助。 –
只有两个错误。修复它们。 –