SOLVED: #include needs different path on windows


#1

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?


#2

See this thread:


#3

@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:


#4

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


#5

Using full and accurate relative paths worked great.