Where does Visual Studio look for C++ header files?

I checked out a copy of a C++ application from SourceForge (HoboCopy, if you're curious) and tried to compile it.

Visual Studio tells me that it can't find a particular header file. I found the file in the source tree, but where do I need to put it, so that it will be found when compiling?

Are there special directories?

Answers


Visual Studio looks for headers in this order:

  • In the current source directory.
  • In the Additional Include Directories in the project properties (under C++ | General).
  • In the Visual Studio C++ Include directories under ToolsOptionsProjects and SolutionsVC++ Directories.

In your case, add the directory that the header is in to the project properties.


Need Your Help

How can I allow a user to always allow my flash app to access the microphone?

flash microphone

We've got a flash application which has started displaying some rather irritating behavior. Every time the user logs into the site, they see a warning dialog from flash asking them if they want to...