-
Error with include files
I have some source programs. When compiled they give me the following error:
Code:
Compiling...
foo.cpp
e:\source\foo\foo.hpp(14) : fatal error C1083: Cannot open include file: 'haa.h': No such file or directory
Line 14 of the file 'foo.hpp' looks like this:
Can anyone tell me what causes this type of error and how I can go about fixing it?
-
-
If your "haa.h" header is in the same dir as the file calling it, it's a total mystery.
That's why I think your problem is that your "haa.h" header file is not in the same dir as the file calling it.
-
"haa.h" is in the directory "e:\source\common."
-
Then you need to add a search path to the compiler
-Ie:\source\common
Or if you have an IDE, find out how to achieve the same effect using that (probably something along the lines of project settings->compiler->pre-processor)
-
Why can't I just add the 'haa.h' to my project? Thanks by the way. That last suggestion did the trick.