Visual Studio 2019 找不到很多头文件 [英] Visual Studio 2019 cant find many header files

查看:156
本文介绍了Visual Studio 2019 找不到很多头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的游戏引擎上工作了一段时间,但出于某种原因,我突然发现了一个错误,即许多头文件都丢失了.我检查了控制台,代码中没有错误,而且我之前已经编译了该项目.它发生在我从旧光盘中删除了不再用作主光盘的 Windows 文件之后,Visual Studio 可能使用了该路径中的这些文件.我已经尝试修复 Visual Studio,但它没有解决问题.这是错误的屏幕截图:​​

I've been working on my game engine for a while and for some reason all of a sudden I came up with an error that many header files are missing. I checked the console and there is no errors in the code and also I already compiled the project before. It happened after I removed Windows files from my old disc that I dont use as primary disc anymore and visual studio mightve used those files from that path. I already tried repairing Visual Studio but it didn't fix the problem. Here is a screenshot of the errors:

解答:Windows SDK 丢失,因此无法找到文件.我从这里下载了sdk

ANSWER: The Windows SDK was missing and so, the files couldn't be found. I downloaded the sdk from here

推荐答案

对于您的项目,转到 Project->Properties 并验证该项目是否设置为使用安装在 General 选项卡上的 Windows SDK 版本作为已安装的平台工具集.还要确保在配置/平台顶部的下拉列表中是您当前正在测试的环境(例如,Debug x86 将是 Debug Win32).

For your project, go to Project->Properties and verify that the project is set to use a version of Windows SDK that is installed on the General tab as well as a platform toolset that is installed. Also make sure that at the dropdowns at the top for configuration/platform are the environment you are currently testing in (ex. Debug x86 would be Debug Win32).

这篇关于Visual Studio 2019 找不到很多头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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