简体   繁体   English

DirectX12 问题:“d3dApp.h”:没有这样的文件或目录

[英]Problem with DirectX12: 'd3dApp.h': No such file or directory

I am beginning to study DirectX12.我开始研究DirectX12。 In Visual Studio 2019 when attempting to compile a code ( the code from page xxx to page xxxiii of the Introduction ( the box example ) in Frank Luna's '3D game programming with DirectX12' ), I get this error ( the last part is in english ):在 Visual Studio 2019 中,当尝试编译代码时(Frank Luna 的“使用 DirectX12 的 3D 游戏编程”中介绍的第 xxx 页到第 xxxi 页的代码(方框示例)),我收到此错误(最后一部分是英文):

1>C:\Users\Maurizio\Desktop\intro\Box\BoxApp.cpp(11,10): fatal error C1083: Non è possibile aprire il file inclusione: '../../Common/d3dApp.h': No such file or directory

Well, I added that file to the solution but the compiler says it can not find it.好吧,我将该文件添加到解决方案中,但编译器说找不到它。 I performed my research and I found something similar:我进行了研究,发现了类似的东西:

cannot open include file d3dx9.h no such file or directory 无法打开包含文件 d3dx9.h 没有这样的文件或目录

d3dx11 lib not found 找不到 d3dx11 库

I am just a student and unfortunately I can not solve the issue by myself so I would be grateful if some kind EXPERT souls look at it:-)我只是一个学生,不幸的是我不能自己解决这个问题所以如果有好心的专家看看我将不胜感激:-)

As per the comments the issue was most likely that the header file was in the wrong folder.根据评论,问题很可能是头文件位于错误的文件夹中。 The simplest approach for using these examples is probably to just grab the entire repository (in there the files in question are '''d3d12book\Chapter 6 Drawing in Direct3D\Box\BoxApp.cpp''' and '''d3d12book/Common/d3dApp.h''')使用这些示例的最简单方法可能是只获取整个存储库(其中有问题的文件是 '''d3d12book\Chapter 6 Drawing in Direct3D\Box\BoxApp.cpp''' 和 '''d3d12book/Common/ d3dApp.h''')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM