在做VC6.0到vs2005的代码移植时,编译工程出现
d:\program files\microsoft visual studio 8\vc\include\stdlib.h(395) : error C2061: syntax error : identifier '_CountofType'这种错误。主要是在编译StdAfx.h时报错的,它包含的头文件如下:
#include <windows.h>
#include <assert.h>#include "SGI_STL\\vector"
#include "SGI_STL\\algorithm"
#include "SGI_STL\\functional"
是不是VS2005的环境或者路径设置出了问题啊?
请高手说一下原因!!
d:\program files\microsoft visual studio 8\vc\include\stdlib.h(395) : error C2061: syntax error : identifier '_CountofType'这种错误。主要是在编译StdAfx.h时报错的,它包含的头文件如下:
#include <windows.h>
#include <assert.h>#include "SGI_STL\\vector"
#include "SGI_STL\\algorithm"
#include "SGI_STL\\functional"
是不是VS2005的环境或者路径设置出了问题啊?
请高手说一下原因!!
SGI's STL implementation hasn't been updated in years, which means no updates to make sure it would work with any of the newer compilers. You might want to try using STLPort instead, as it's more likely to function with MSVC 2005.