vs2013 MFC编译报错,非常奇怪
报错竟然是这样的:1>------ 已启动生成: 项目: Assignment07-1plus, 配置: Debug Win32 ------
1>生成启动时间为 2014/12/23 20:52:05。
1>InitializeBuildStatus:
1> 正在对“Debug\Assignme.3EF41820.tlog\unsuccessfulbuild”执行 Touch 任务。
1>ClCompile:
1> 所有输出均为最新。
1> Assignment07-1plusDlg.cpp
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144): error C2332: “struct”: 缺少标记名
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144): error C3306: “std::<unnamed-tag>”: 不允许存在未命名的类 模板
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2059: 语法错误:“public”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2065: “_Ty”: 未声明的标识符
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2923: “std::binary_function”: 对于参数“_Arg1”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2923: “std::binary_function”: 对于参数“_Arg2”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2923: “std::binary_function”: 对于参数“_Result”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(146): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(146): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(155): error C2332: “struct”: 缺少标记名
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(155): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(154): warning C4348: “std::<unnamed-tag>”: 重定义默认参数 : 参数 1
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144) : 参见“std::<unnamed-tag>”的声明
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(155): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2059: 语法错误:“public”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2065: “_Ty”: 未声明的标识符
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2923: “std::binary_function”: 对于参数“_Arg1”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2923: “std::binary_function”: 对于参数“_Arg2”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2923: “std::binary_function”: 对于参数“_Result”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(157): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(157): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(199): error C2332: “struct”: 缺少标记名
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(199): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(199): error C2913: 显式专用化;“std::<unnamed-tag>”不是类模板的专用化
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(199): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(200): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(200): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(214): error C2332: “struct”: 缺少标记名
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(214): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(214): error C2913: 显式专用化;“std::<unnamed-tag>”不是类模板的专用化
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(214): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(215): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(215): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2792): error C2988: 不可识别的模板声明/定义
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2792): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2807): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2807): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2863): error C2988: 不可识别的模板声明/定义
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2863): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2879): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2879): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(1727): error C2059: 语法错误:“常量”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(2297): 参见对正在编译的类 模板 实例化“std::basic_string<_Elem,_Traits,_Alloc>”的引用
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(1728): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(1732): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(1733): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1232): error C2059: 语法错误:“常量”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1783): 参见对正在编译的类 模板 实例化“std::vector<_Ty,_Alloc>”的引用
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1233): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1237): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1238): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(2728): error C2059: 语法错误:“常量”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(3001): 参见对正在编译的类 模板 实例化“std::vector<std::_Bool,_Alloc>”的引用
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(2729): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(2733): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(2734): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>e:\users\hao341202\documents\visual studio 2013\projects\assignment07-1\assignment07-1plus\assignment07-1plusdlg.cpp(64): error C2665: “DDX_Text”: 17 个重载中没有一个可以转换所有参数类型
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(46): 可能是“void DDX_Text(CDataExchange *,int,FILETIME &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(45): 或 “void DDX_Text(CDataExchange *,int,DECIMAL &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(44): 或 “void DDX_Text(CDataExchange *,int,GUID &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(43): 或 “void DDX_Text(CDataExchange *,int,ATL::COleDateTime &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(42): 或 “void DDX_Text(CDataExchange *,int,COleCurrency &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(41): 或 “void DDX_Text(CDataExchange *,int,double &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(40): 或 “void DDX_Text(CDataExchange *,int,float &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(38): 或 “void DDX_Text(CDataExchange *,int,CString &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(37): 或 “void DDX_Text(CDataExchange *,int,ULONGLONG &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(36): 或 “void DDX_Text(CDataExchange *,int,LONGLONG &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(35): 或 “void DDX_Text(CDataExchange *,int,DWORD &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(34): 或 “void DDX_Text(CDataExchange *,int,long &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(33): 或 “void DDX_Text(CDataExchange *,int,UINT &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(32): 或 “void DDX_Text(CDataExchange *,int,int &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(31): 或 “void DDX_Text(CDataExchange *,int,short &)”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afxdd_.h(30): 或 “void DDX_Text(CDataExchange *,int,BYTE &)”
1> 尝试匹配参数列表“(CDataExchange *, int, long double)”时
1>e:\users\hao341202\documents\visual studio 2013\projects\assignment07-1\assignment07-1plus\assignment07-1plusdlg.cpp(279): warning C4244: “初始化”: 从“long double”转换到“__int64”,可能丢失数据
1>e:\users\hao341202\documents\visual studio 2013\projects\assignment07-1\assignment07-1plus\assignment07-1plusdlg.cpp(281): warning C4244: “=”: 从“__int64”转换到“long double”,可能丢失数据
1> Assignment07-1plus.cpp
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144): error C2332: “struct”: 缺少标记名
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144): error C3306: “std::<unnamed-tag>”: 不允许存在未命名的类 模板
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2059: 语法错误:“public”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2065: “_Ty”: 未声明的标识符
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2923: “std::binary_function”: 对于参数“_Arg1”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2923: “std::binary_function”: 对于参数“_Arg2”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(145): error C2923: “std::binary_function”: 对于参数“_Result”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(146): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(146): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(155): error C2332: “struct”: 缺少标记名
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(155): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(154): warning C4348: “std::<unnamed-tag>”: 重定义默认参数 : 参数 1
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(144) : 参见“std::<unnamed-tag>”的声明
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(155): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2059: 语法错误:“public”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2065: “_Ty”: 未声明的标识符
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2923: “std::binary_function”: 对于参数“_Arg1”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2923: “std::binary_function”: 对于参数“_Arg2”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(156): error C2923: “std::binary_function”: 对于参数“_Result”,“_Ty”不是有效的 模板 类型变量
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(157): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(157): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(199): error C2332: “struct”: 缺少标记名
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(199): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(199): error C2913: 显式专用化;“std::<unnamed-tag>”不是类模板的专用化
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(199): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(200): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(200): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(214): error C2332: “struct”: 缺少标记名
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(214): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(214): error C2913: 显式专用化;“std::<unnamed-tag>”不是类模板的专用化
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(214): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(215): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstddef(215): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2792): error C2988: 不可识别的模板声明/定义
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2792): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2807): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2807): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2863): error C2988: 不可识别的模板声明/定义
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2863): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2879): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2879): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(1727): error C2059: 语法错误:“常量”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(2297): 参见对正在编译的类 模板 实例化“std::basic_string<_Elem,_Traits,_Alloc>”的引用
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(1728): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(1732): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring(1733): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1232): error C2059: 语法错误:“常量”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1783): 参见对正在编译的类 模板 实例化“std::vector<_Ty,_Alloc>”的引用
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1233): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1237): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1238): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(2728): error C2059: 语法错误:“常量”
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(3001): 参见对正在编译的类 模板 实例化“std::vector<std::_Bool,_Alloc>”的引用
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(2729): error C2334: “{”的前面有意外标记;跳过明显的函数体
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(2733): error C2059: 语法错误:“常量”
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(2734): error C2334: “{”的前面有意外标记;跳过明显的函数体
1> 正在生成代码...
1>
1>生成失败。
1>
1>已用时间 00:00:03.41
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
全都是系统文件出错。重装2013无果。
系统配置:win7 x64 sp1
.net Framework 4.0
这个程序本来是vs2010的程序,在2010上调试就是这么报错的。转成2013后问题依旧。求大神指教!