gpt4 book ai didi

visual-studio - Visual Studio Express 2012 无法打开包含文件 : 'windows.h' : No such file or directory

转载 作者:行者123 更新时间:2023-12-03 00:28:55 25 4
gpt4 key购买 nike

当我运行我的项目时,我遇到 fatal error :

 Cannot open include file: 'windows.h': No such file or directory
Cannot open include file: 'd3d11.h': No such file or directory
Cannot open include file: 'd3dx11.h': No such file or directory

我已经安装了 SDK,有人告诉我必须设置 SDK 目录的正确路径,但我不知道在哪里执行此操作,在 Tools->Options->Projects 和解决方案中我看到 “选项已被弃用”

最佳答案

@Kanglai 可能就在这里,但您看到的与 D3D header 相关的错误有所不同。 DX SDK 与 Windows SDK 分开提供。请参阅 MSDN 上的这篇文章。

Where is the DirectX SDK?

Visual C++ 处理目录的方式在最新版本中发生了变化,因此出现了已弃用的消息。以下博客文章解释了这些更改以及如何在新版本的 VS 中执行相同的操作。

VC++ Directories

关于visual-studio - Visual Studio Express 2012 无法打开包含文件 : 'windows.h' : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15050539/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com