Nov 25, 2008 at 11:24am UTC
Hi
I have opened a VC++.net project
When I compile the project I am getting an error.
fatal error C1083: Cannot open include file: 'Test/Testnamespaces.h': No such file or directory
Now I have created a folder 'Test' and add a header file 'Testnamespaces.h'.
But still I am getting the same error.
Kindly help me
Regards
Karan
Nov 25, 2008 at 12:44pm UTC
Did you use <> or ""? <> Will cause the compiler to search in one of its include directories, but "" is used for a file relative to the file doing the inclusion.
So if I had
./0.cpp
./1/2.cpp
0.cpp:
#include "1/2.cpp"
Nov 25, 2008 at 1:28pm UTC
Hi
I am using angular bracket i.e. <>
When I open the project I am I have 3 folders
Header Files
Resource Files
Source Files
If I am getting an error fatal error C1083: Cannot open include file: 'Test/Testnamespaces.h': No such file or directory
then should I include "Test" directory in Header files or the root folder of the project
Nov 25, 2008 at 1:30pm UTC
you should just use the double quotes:
#include "Test/Testnamespaces.h"