致命错误C1083:无法打开包含文件 [英] fatal error C1083: Cannot open include file
问题描述
我基于此查看了上一篇文章,但它们没有关系。我收到以下错误。
I looked at previous post based on this but they do not relate. I am receiving the following error.
1>c:\users\numerical25\desktop\intro todirectx\introtodirectx\chapter 4\init direct3d\init direct3d.cpp(9) : fatal error C1083: Cannot open include file: 'd3dApp.h': No such file or directory
但是从下面的图片中可以清楚地看出,
But clearly from the image shown below, its there
反对其他找到问题的人物理驱动器上的标头。编译器无法在解决方案资源管理器中找到我的标头。
In oppose to other people who are having issues finding the header on the physical drive. the compiler can not find my header from within the solution explorer.
推荐答案
您在IDE左侧窗格中看到的内容绝对是与文件是否存在无关。 解决方案资源管理器不会浏览文件系统中存在的实际文件,它只是向您显示哪些文件已注册作为此解决方案的一部分。
What you see in the left pane of the IDE has absolutely nothing to do with whether the file is there or not there. "Solution Explorer" does not explore the actual files present in the file system, it simply shows you which files are registered as parts of this solution.
为了编译代码,文件必须存在于计算机的文件系统中,该路径指定为此解决方案的头文件的搜索路径。它不存在,因此错误。
In order for the code to compile, the file must be present in the file system of your computer in one of the paths that the specified as search paths for header files of this solution. It is not present, hence the error.
这篇关于致命错误C1083:无法打开包含文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!