-3

This question should be is trivial enough but i didn't find answer. I have the following hierarchy:

  • source.cpp
  • thirdparty
    • Include
      • pelib
        • PeLib.h
      • test.cpp

I need to include "pelib/PeLib.h". If I add $(ProjectDir)/thirdparty/Include to include directories I can only #include "test.cpp" but can't #include "pelib/PeLib.h".

1 Answers1

0

According to this answer (thanks @umläute) your code should work. My guess is you variable $(ProjectDir) is not pointing the directory you think.

Try adding the full path to your thirdparty/Include to include directories and try again.

Community
  • 1
  • 1
Raydel Miranda
  • 13,825
  • 3
  • 38
  • 60
  • 1
    this is a bit misleading: `"incl.h"` is searched for in the relative path and then (as fallback) in the include-path. check [this answer](http://stackoverflow.com/questions/21593/) – umläute Apr 14 '15 at 20:05