Go Down

Topic: #import "../path" (Read 785 times) previous topic - next topic

miken

I have 3 project folders with each project wanting to share .h and .cpp files that are under development. I would like to put these files in a separate "shared" folder and use statements such as...

#include "../shared/file.h"
#include "../shared/file.cpp"

Although the second .cpp include ought not to be necessary as the linker should find it.

However, neither statement seems to work, so I have to physically duplicate and copy each of these files into each project folder.    The Arduino IDE doesn't seem to recognize relative paths.

Is is possible to share files between projects?

Go Up