-
header files not found
Hi all,
I am trying to build a project in VC++, but most of the time I keep getting the following error:
Cannot open include file: 'xyz.h': No such file or directory, where xyz is the header file which the programs are calling..
I have made sure to include that header file using project->add existing item.
I also manually put the header file in the main project folder..
but still... it's giving the same error..
The code uses "xyz.h" format.. is this a problem?? coz even changing it to <xyz.h> doesn't help..
Many thanks,
Abhi
-
Can't help you much without sitting at your computer. Look at your include directory to see where VS is looking for your header files, and put the header there. Make sure the header has the name you think it does.
-
I think your header file path should be give in the include path of your VS configuration
-
Maybe You can solve it by rebuilding the compile.
-
Know that simply #include "whatever" does not include whatever just because it is part of the project. The #include works on the filesystem level, so the whatever has to exist in the same directory as the source file that includes it. Otherwise you must specify a search path to that file that is relative to the source file (or an absolute path if you wish).