C++ – fatal error C1083: Cannot open include file: ‘xyz.h’: No such file or directory

c

I am using visual studio 2005 to create a project. And I have folder structure in project as: a folder called code. this folder contains all *.cxx files.

Now, I have created a class xyz in header file xyz.h. And defined every thing in xyz.cxx which is placed in code folder.
But now when I try to compile it with visual studio it throws me an error
"fatal error C1083: Cannot open include file: 'xyz.h': No such file or directory". how to rectify this problem.

Best Answer

Add the "code" folder to the project properties within Visual Studio

Project->Properties->Configuration Properties->C/C++->Additional Include Directories

Related Topic