prosseek
prosseek

Reputation: 190799

"Cannot open include file" error in VS2010

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

Upvotes: 1

Views: 6104

Answers (2)

prosseek
prosseek

Reputation: 190799

enter image description here

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

Upvotes: 3

Dark Falcon
Dark Falcon

Reputation: 44181

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

Upvotes: 1

Related Questions