I have file which needs to include blah.h in another project. I’ve tried adding the directory that holds the blah.h file to
Project -> Project Properties -> Additional include directories
but I keep getting a “C1083: Cannot open include file: blah.h: No such file or directory”. I’ve tried absolute and relative paths to the folder housing blah.h with no success.
I’m using Visual Studios 2003. and my include statement looks like
#include "blah.h"
Any suggestions?
Get the build (or at least this part of the build) working using:
If/when VS stops complaining about not being able to find
blah.h, cut-n-paste the path used in the#includeinto the “Additional include directories”. Remember that the “Additional include directories” field should have the directories separated by a semi-colon.Also, make sure that you set the “Additional include directories” property for all appropriate build configurations and platforms (drop-downs at the top of the Project property page dialog). Since the dialog opens up with only the “Active” configuration selected, I often find myself setting up an option for only the “Debug”/”Win32” configuration, then wonder for a second what’s gone wrong when I get errors after switching to the “Release” configuration or “x64”.