SOLVED: #include needs different path on windows

I used projucer to add some .h files in a parallel directory. On macOS the includes work as

#include "MyExternal.h"

but on Windows 10 with VS2017 I have to use

#include "../../../dir/MyExternal.h"

Is there a setting that allows me to use the same includes on Win and macOS alike?

See this thread:

1 Like

@jules, I see that Projucer still does not set the “Use header map” to “NO” for Xcode, which is also discussed in the topic that you linked.

That could help in avoiding this kind of problems in the future.

See your own post in that topic:

Yeah, we forgot about this but it may actually be a good time to do it now…


Using full and accurate relative paths worked great.