[英]Include Directories Visual Studio 2010
When I attempt to #include "postgres.h"
, I get this error IntelliSense: cannot open source file "postgres.h"
. 当我尝试
#include "postgres.h"
,出现此错误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)
. 我试图通过将其添加到字段的末尾来添加到包括目录:
$(pathContainingHeaderFile)
。 The error remains when attempting to #include "postgres.h"
尝试
#include "postgres.h"
时,错误仍然存在
If I #include "pathContainingHeaderFile\\postgres.h"
there are different errors because the files referenced by postgres.h
cannot be found. 如果我
#include "pathContainingHeaderFile\\postgres.h"
,则会出现不同的错误,因为找不到由postgres.h
引用的文件。
You should just append ; pathContainingHeaderFile
你应该追加
; pathContainingHeaderFile
; pathContainingHeaderFile
to the Include Directories ie omit the $(
and )
parts. ; pathContainingHeaderFile
到包含目录,即省略$(
和)
部分。 Remove giving the path in the #include
line and it should work fine. 删除
#include
行中的路径,它应该可以正常工作。
您可以尝试将头文件复制并粘贴到与放置可执行文件相同的映射中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.