“Cannot open include file” error in VS2010

2019-08-12 14:22发布

I'm trying to compile open source tool "abc".

When I tried to build the solution file, I got a lot of error messages.

enter image description here

The c source code has include directive, and VS2010 cannot find the header files. The file structure is as follows.

enter image description here

#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.

What might be wrong?

enter image description here

2条回答
The star\"
2楼-- · 2019-08-12 15:01

I think you want $(ProjectDir). Perhaps your solution is one folder above the project.

查看更多
来,给爷笑一个
3楼-- · 2019-08-12 15:20

enter image description here

I needed to setup properties in C/C++/General/Additional Include Directories

查看更多
登录 后发表回答