“新"已安装的 Visual Studio 在类型为“无法打开源文件“errno.h"的空白程序上返回 408 错误;' [英] "newly" installed visual studio returns 408 errors on blank program of type 'cannot open source file "errno.h" '

查看:173
本文介绍了“新"已安装的 Visual Studio 在类型为“无法打开源文件“errno.h"的空白程序上返回 408 错误;'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 PC 上安装 VS 2019 并打开一个新项目后,我收到 408 错误,都说它无法打开各种源 .h 文件,例如 errno.h、float.h、corecrt.h 等.或全局范围没有acosf";'我刚刚安装了visual studio,不知道它是如何工作的,除了安装它并打开一个新项目之外什么也没做.可能有用的信息:

Having installed VS 2019 on my PC, and opening up a new project, i get 408 errors that all say it cannot open various source .h files, such as errno.h, float.h, corecrt.h, etc. or 'the global scope has no "acosf" 'I had just installed visual studio and have no clue how it works, and have not done anything other than install it and open up a new project. Possibly useful information:

  • 它没有安装在默认位置,而是安装在 D: 驱动器上
  • 当我使用 unity 打开它以编辑我的 unity 项目的脚本时,visual studio 工作正常,但是从桌面图标或从开始菜单打开它时,我收到错误
  • Unity 是在我安装 Visual Studio 之前安装的,并且似乎在我电脑上的其他地方使用了不同版本的 Visual Studio,但我找不到它在哪里,因此我自己安装了
  • 该项目是一个 C++ 项目

我已经尝试修复visual studio并重新安装它,但它没有用.

I have already tried repairing visual studio and reinstalling it, but it did not work.

推荐答案

我建议您可以在 Visual Studio 安装程序中检查 Windows SDK 的版本.然后在属性中设置合适版本的windows sdk ->一般 ->windows SDK 版本.

I suggest you could to check the version of Windows SDK in visual studio installer. And then set the appropriate version of windows sdk in the property -> General -> windows SDK version.

这篇关于“新"已安装的 Visual Studio 在类型为“无法打开源文件“errno.h"的空白程序上返回 408 错误;'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆