Reputation: 7536
I've got a C++ project and I'm really confused with the header organization in that project. I have header files for gui declaration and source files. The organization is:
//file1.h
#pragma once
//file1.cpp
#include "file1.h"
//file2.h
#pragma once
//file2.cpp
#include "file2.h"
And when I'm trying to inlcude file1.h in file2.h or file2.cpp and using file1.h types I always get the fatal error C1083: Cannot open include file. How resolve this problem.
I've created a simple project to illustrate the problem. TestProject
Upvotes: 0
Views: 127
Reputation: 206636
error C1083: Cannot open include file
Means most probably either your file is not present at the path or you have not added the path of the file to your include path.
Have a look at Fatal Error C1083.
Upvotes: 3