I'm trying to restructure my project and get everything in git, especially the custom headers I share between my Arduino & RPi code. I moved all the code into a single project directory with three subdirs: "server", "client", and "includes" and copied my sketch into the "client" dir. I then changed the include for my header from e.g. '#include <myfile.h>' to '#include "../includes/myfile.h"' and while this is perfectly valid C/C++, the arduino compiler doesn't like it and complains about not being able to find the file.
myproject:8:10: fatal error: ../includes/myfile.h: No such file or directory
I'm not sure why this is happening. It's always been my understanding that relative paths in double-quoted include directories are interpreted as being relative to the source file in question, not e.g. the current working directory or anything like that. I use the same include in the c++ RPi project (in the "server" directory) without issue.
Full disclosure: I'm trying to switch to VS Code since the Arduino IDE is very basic/immature, so I'm looking for a solution that doesn't involve changing IDE settings -- since those probably won't carry over. The project runs into the same error with the Arduino IDE and VS Code, so I think it has something to do with the avr-gcc flags, so maybe I can fix it somehow with a change to platform.txt?