关于vs2008编译的问题 高手们帮忙下
stdafx.cpp
c:\F\visualstudio2008中文版\VC\include\vadefs.h(89) : error C4956: “va_list *”: 此类型是不可验证的
C4956: “threadmbcinfostruct *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2032) : error C4959: 不能在 /clr:safe 中定义非托管 struct“localeinfo_struct”,因为访问其成员会产生不可验证的代码
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2035) : error C4956: “localeinfo_struct *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2038) : error C4959: 不能在 /clr:safe 中定义非托管 struct“tagLC_ID”,因为访问其成员会产生不可验证的代码
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2042) : error C4956: “tagLC_ID *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2047) : error C4959: 不能在 /clr:safe 中定义非托管 struct“threadlocaleinfostruct”,因为访问其成员会产生不可验证的代码
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2053) : error C4959: 不能在 /clr:safe 中定义非托管 struct“threadlocaleinfostruct::$UnnamedClass$0x6b997b4f$1$”,因为访问其成员会产生不可验证的代码
: “int *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2061) : error C4956: “int *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2064) : error C4956: “lconv *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2065) : error C4956: “int *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2066) : error C4956: “unsigned short *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2067) : error C4956: “const unsigned short *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2068) : error C4956: “const unsigned char *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2069) : error C4956: “const unsigned char *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\excpt.h(60) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\excpt.h(60) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\excpt.h(60) : error C2065: “SA_Read”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\excpt.h(61) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\excpt.h(61) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\excpt.h(61) : error C2065: “SA_Read”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\excpt.h(62) : error C2337: “SA_Post”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\excpt.h(62) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\excpt.h(62) : error C4956: “_CONTEXT *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\excpt.h(63) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\excpt.h(63) : error C2065: “SA_No”: 未声明的标识符
“SA_No”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\excpt.h(63) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\excpt.h(63) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\excpt.h(63) : error C2337: “SA_Post”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\excpt.h(63) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
C:\F\visualstudio2008中文版\PSDK-x86\Include\windef.h(53) : error C4956: “char *”: 此类型是不可验证的
C:\F\visualstudio2008中文版\PSDK-x86\Include\windef.h(156) : error C4956: “FLOAT *”: 此类型是不可验证的
C:\F\visualstudio2008中文版\PSDK-x86\Include\windef.h(157) : error C4956: “BOOL *”: 此类型是不可验证的
C:\F\visualstudio2008中文版\PSDK-x86\Include\windef.h(158) : error C4956: “BOOL *”: 此类型是不可验证的
C:\F\visualstudio2008中文版\PSDK-x86\Include\windef.h(159) : error C4956: “BYTE *”: 此类型是不可验证的
C:\F\visualstudio2008中文版\PSDK-x86\Include\windef.h(160) : error C4956: “BYTE *”: 此类型是不可验证的
证的
C:\F\visualstudio2008中文版\PSDK-x86\Include\windef.h(169) : error C4956: “const void *”: 此类型是不可验证的
C:\F\visualstudio2008中文版\PSDK-x86\Include\windef.h(173) : error C4956: “unsigned int *”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\ctype.h(43) : error C4956: “const unsigned short *(void)”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\ctype.h(59) : error C4956: “const wctype_t *(void)”: 此类型是不可验证的
c:\F\visualstudio2008中文版\VC\include\ctype.h(94) : error C2337: “SA_Post”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(94) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(94) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(94) : error C2065: “SA_No”: 未声明的标识符
“SA_No”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(94) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(94) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(94) : error C2065: “SA_Read”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(95) : error C2065: “SA_Read”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(95) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(95) : error C2065: “SA_No”: 未声明的标识符
“SA_No”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(95) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(95) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(95) : error C2065: “SA_Read”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(96) : error C2337: “SA_Post”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(96) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(96) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(96) : error C2065: “SA_No”: 未声明的标识符
“SA_No”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(96) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(97) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(97) : error C2065: “SA_No”: 未声明的标识符
“SA_No”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(97) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(97) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(97) : error C2065: “SA_Read”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(97) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(97) : error C2065: “SA_Maybe”: 未声明的标识符
“SA_Maybe”两侧缺少引号("")?
: error C2337: “SA_Post”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(98) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(98) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(98) : error C2065: “SA_No”: 未声明的标识符
“SA_No”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(98) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(98) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(98) : error C2065: “SA_Read”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(99) : error C2337: “SA_Post”: 未找到属性
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(99) : error C2065: “SA_Read”: 未声明的标识符
“SA_Read”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(99) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(99) : error C2065: “SA_Maybe”: 未声明的标识符
“SA_Maybe”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(99) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(99) : error C2065: “SA_Yes”: 未声明的标识符
“SA_Yes”两侧缺少引号("")?
c:\F\visualstudio2008中文版\VC\include\ctype.h(100) : error C2337: “SA_Pre”: 未找到属性
c:\F\visualstudio2008中文版\VC\include\ctype.h(101) : fatal error C1003: 错误计数超过 100;正在停止编译
生成时间 0:01
生成日志保存在“file://c:\E\MYC++\CHECKER1\CHECKER1\Debug\BuildLog.htm”
CHECKER1 - 153 个错误,0 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
另外问一个问题,生成可验证的的项目是不是就是可以再别的机子上运行的项目?
[解决办法]
c:\F\visualstudio2008中文版\VC\include\crtdefs.h(2032) : error C4959: 不能在 /clr:safe 中定义非托管 struct“localeinfo_struct”,因为访问其成员会产生不可验证的代码
clr:safe 类型项目不允许使用非托管代码
把clr:safe 改为clr (在项目设置里改)