Reputation: 511
When I attempt to #include "postgres.h"
, I get this error IntelliSense: cannot open source file "postgres.h"
.
I have attempted to add to the Include Directories by adding this to the end of the field: $(pathContainingHeaderFile)
. The error remains when attempting to #include "postgres.h"
If I #include "pathContainingHeaderFile\postgres.h"
there are different errors because the files referenced by postgres.h
cannot be found.
Upvotes: 0
Views: 102
Reputation: 32884
You should just append ; pathContainingHeaderFile
to the Include Directories i.e. omit the $(
and )
parts. Remove giving the path in the #include
line and it should work fine.
Upvotes: 1
Reputation: 2469
You can try and copy-paste the header file in the same map as the executable is placed.
Upvotes: 0