Search code examples
visual-studio-2015include-path

VS15 Include Path


I work on a project in VS15 which is stored like this:

Projectmap
- Project_A
- Project_B
- Project_C

Inside of each project the include path looks like this:

#include "./Project_A/Folder/file.h"

Visual Studio is unable to follow the given path. I tried adding to the include path in settings $(SolutionDir) and $(ProjectDir) but both didn't work.

How can I use the include path?


Solution

  • I've found out, how to solve this problem.

    It's close to CristiFati. I had to add

    $(SolutionDir)
    

    After that point I could use

    #include "./Project_A/Folder/file.h"
    

    I could also use the path without ./ but it was used in the project many times and I don't want to change much there...

    Thanks for the advice :)