[英]“Cannot open include file” error in VS2010
I'm trying to compile open source tool "abc". 我正在尝试编译开源工具“ abc”。
When I tried to build the solution file, I got a lot of error messages. 当我尝试构建解决方案文件时,出现了很多错误消息。
The c source code has include directive, and VS2010 cannot find the header files. C源代码具有include指令,VS2010无法找到头文件。 The file structure is as follows.
文件结构如下。
#include "src/misc/util/abc_global.h"
#include "pr.h"
In project property, I tried to add $(SolutionDir) and $(ProjectDir), but it didn't work. 在项目属性中,我尝试添加$(SolutionDir)和$(ProjectDir),但是没有用。
What might be wrong? 可能是什么问题?
I needed to setup properties in C/C++/General/Additional Include Directories 我需要在C / C ++ / General / Additional Include Directories中设置属性
I think you want $(ProjectDir)
. 我认为您想要
$(ProjectDir)
。 Perhaps your solution is one folder above the project. 也许您的解决方案是项目上方的一个文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.