额,VS编译错误,求大神指教!
vs2015吧
全部回复
仅看楼主
level 1
豳彌4 楼主
源文件只有空的main函数,没有任何操作!
1>f:\vs2015\vc\include\xtr1common(100): error C2737: “std::is_same_v”: 必须初始化“constexpr”对象
1>f:\vs2015\vc\include\xtr1common(100): error C2998: “const bool std::is_same_v”: 不能是模板定义
1>f:\vs2015\vc\include\xtr1common(245): error C2737: “std::is_integral_v”: 必须初始化“constexpr”对象
1>f:\vs2015\vc\include\xtr1common(245): error C2998: “const bool std::is_integral_v”: 不能是模板定义
1>f:\vs2015\vc\include\xtr1common(282): error C2737: “std::is_floating_point_v”: 必须初始化“constexpr”对象
1>f:\vs2015\vc\include\xtr1common(282): error C2998: “const bool std::is_floating_point_v”: 不能是模板定义
1>f:\vs2015\vc\include\xtr1common(295): error C2737: “std::is_arithmetic_v”: 必须初始化“constexpr”对象
1>f:\vs2015\vc\include\xtr1common(295): error C2998: “const bool std::is_arithmetic_v”: 不能是模板定义
1>f:\vs2015\vc\include\xstddef(697): error C2737: “std::is_function_v”: 必须初始化“constexpr”对象
1>f:\vs2015\vc\include\xstddef(697): error C2998: “const bool std::is_function_v”: 不能是模板定义
1>f:\vs2015\vc\include\type_traits(524): error C2275: “_To”: 将此类型用作表达式非法
1> f:\vs2015\vc\include\type_traits(521): note: 参见“_To”的声明
1> f:\vs2015\vc\include\type_traits(526): note: 参见对正在编译的类 模板 实例化“std::is_assignable<_To,_From>”的引用
1>f:\vs2015\vc\include\type_traits(524): error C2275: “_From”: 将此类型用作表达式非法
1> f:\vs2015\vc\include\type_traits(522): note: 参见“_From”的声明
1>f:\vs2015\vc\include\type_traits(524): error C3861: “__is_assignable”: 找不到标识符
1>f:\vs2015\vc\include\type_traits(524): error C2975: “_Val”:“std::integral_constant”的模板参数无效,应为编译时常量表达式
1> f:\vs2015\vc\include\xtr1common(21): note: 参见“_Val”的声明
1>f:\vs2015\vc\include\type_traits(1245): error C2061: 语法错误: 标识符“__make_integer_seq”
1>f:\vs2015\vc\include\type_traits(1249): error C2065: “_Vals”: 未声明的标识符
1>f:\vs2015\vc\include\type_traits(1249): error C2975: “_Vals”:“std::integer_sequence”的模板参数无效,应为编译时常量表达式
1> f:\vs2015\vc\include\type_traits(1190): note: 参见“_Vals”的声明
1>f:\vs2015\vc\include\type_traits(1252): error C2061: 语法错误: 标识符“make_integer_sequence”
1>f:\vs2015\vc\include\type_traits(1261): error C2631: “identity”: 别名模板中不能定义类或枚举
2017年01月04日 06点01分 1
level 1
我也是,你怎么解决的
2017年07月02日 01点07分 2
各位,你们最后怎么解决的?难不成要重装么?垃圾VS
2017年09月26日 08点09分
@申行者- 我也不知道,过去很久了,反正后来是搞好了
2017年09月26日 14点09分
level 1
各位,你们最后怎么解决的?难不成要重装么?垃圾VS
2017年09月26日 08点09分 3
level 1
各位,你们最后怎么解决的?难不成要重装么?垃圾VS
2017年09月26日 08点09分 4
level 1
我遇到这个问题,解决了,我的是win10系统,我是在新建项目的模板visual C++下选中windows,在右边选择安装windows运行时组件(通用windows),因为这个适用于win10,然后安装完之后,在建立项目还是用的win32控制台应用程序,再运行hello world就ok了
2017年10月17日 09点10分 5
1