//--------------------------------------------------------
d:\program files\vs2010\vc\include\codeanalysis\sourceannotations.h(29): error C2144: 语法错误:“__w64 unsigned int”的前面应有“;”
//-----------------------------------------------------------------
标明位置在SourceAnnotations.h内:
//-----------------------------------------------
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef _W64 unsigned int size_t; //错误指向处
#endif
#define _SIZE_T_DEFINED
#endif
d:\program files\vs2010\vc\include\codeanalysis\sourceannotations.h(29): error C2144: 语法错误:“__w64 unsigned int”的前面应有“;”
//-----------------------------------------------------------------
标明位置在SourceAnnotations.h内:
//-----------------------------------------------
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef _W64 unsigned int size_t; //错误指向处
#endif
#define _SIZE_T_DEFINED
#endif
//------------------------------------------------------------------------
原因:
因为自己的原因,比如分号为中文的,等等,导致vs定位错误到了vs自带的系统头文件中。
解决方法:
看下vs是在编译哪个cpp文件的时候,出现的这个错误。然后删除该cpp文件,从svn上重新导出一份该cpp文件。
重新编译即可通过。