Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

alt text

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.

like image 446
numerical25 Avatar asked Apr 13 '10 13:04

numerical25


2 Answers

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.

like image 121
AnT Avatar answered Nov 05 '22 00:11

AnT


Make sure the directory the header is in is included in the project's settings (C/C++ → General → Additional Include Directories).

like image 5
unwind Avatar answered Nov 04 '22 23:11

unwind