VC++ 4.2: How do I specify an include directory?
Posted on 1997-05-07
I have a header file in a directory outside of my project workspace directory that I would #include in one of my source files. I have attempted to add this directory to my include search path by specifying it in:
Build->Settings->Resources->Additional resource include directories:
Let's say the header files are in c: msdev\projects\generic\myheaders. I specifyc:\msdev\projects\generic for the include directory. Then in my .c file I include the file like this:
When I compile, I get the following error:
fatal error C1083: Cannot open include file: 'myheaders/header1.h': No such file or directory
Thanks in advance for the help.