fatal error C1083: Cannot open include file: ‘new.h’

今天在VS2015上编译一个例子,发现在日文环境下编译没有问题,在英文环境下编译就提示以下错误:fatal error C1083: Cannot open include file: ‘new.h’

new.h是在一个系统中的.h中include的。

微软官方的关于C1083解释:

错误 C1083 | Microsoft Docs

(balabala...都是大方向的分析(感觉有1万种可能出现这个错误),没啥实际帮助)

在网上怎么说的都有,说什么添加环境变量,什么添加路径。。。可能也能解决,但是仔细想想也不是什么正常的方法。。。

在网上查到网友的实际情况:

VS2017 New Install - fatal error C1083: Cannot open include file: 'new.h': No such file or directory

Update:  I resolved the issue by running the Visual Studio Installer on the working system and taking a screen snapshot of the options selected.  When I made the options match on the new system, mostly this involved unchecking the box for Universal Windows Platform development, our code built.  Unfortunately, it isn't obvious why this option is apparently the wrong option. 

大概就是说,安装VS的时候两个系统勾选的功能有差别导致的。确实,重装了一下,两个系统勾选一样的功能就没问题了。(选择追加功能老失败,干脆重装了。)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值