VS2015什么代码都没写编译不通过

qq_37427474 2017-10-04 07:51:53
...全文
471 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
嘎子1985 2017-10-11
  • 打赏
  • 举报
回复
电脑装vs2010了吗,如果装了,先在工程属性中改平台工具集为:vs2010
HomerRo 2017-10-11
  • 打赏
  • 举报
回复
楼上的意思是同时安装了VS2015和VS2010的需要上面的设置对吧。只有VS2015的不需如此设置了,对吧O(∩_∩)O
赵4老师 2017-10-10
  • 打赏
  • 举报
回复
没新建控制台项目吧。
Dobzhansky 2017-10-10
  • 打赏
  • 举报
回复
重装系统试试
  • 打赏
  • 举报
回复
先创建一个项目,在项目里面添加一个cpp文件,然后再编译运行就可以通过了。 studio好像是不能单独编译一个非项目文件的。 === 楼上为什么会建议升级操作系统呢?
自信男孩 2017-10-09
  • 打赏
  • 举报
回复
看编译结果不像是你图片代码的的,好像是其他的代码的编译结果
开心秋水 2017-10-06
  • 打赏
  • 举报
回复
建议升级windows10操作系统
HomerRo 2017-10-05
  • 打赏
  • 举报
回复
using namespace std尽量不要使用!改#include<iostream>为#include<iostream.h> using namespace std; 并不是可以随意使用的语句。 项目工程,能不using就尽量不using,接着在代码里写全称。
tobe_numberone 2017-10-05
  • 打赏
  • 举报
回复
重新建一个项目。
大米粥哥哥 2017-10-04
  • 打赏
  • 举报
回复
怎么看都编译的不是你现在打开的工程
qq_37427474 2017-10-04
  • 打赏
  • 举报
回复
------ 已启动生成: 项目: Project26, 配置: Debug Win32 ------ 1> 源.cpp 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”: 别名模板中不能定义类或枚举 1>d:\documents\visual studio 2015\projects\project26\project26\源.cpp : fatal error C1903: 无法从以前的错误中恢复;正在停止编译 ========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧