Arduino Forum

Forum 2005-2010 (read only) => Software => Development => Topic started by: miken on Aug 02, 2010, 01:14 pm

Title: #import "../path"
Post by: miken on Aug 02, 2010, 01:14 pm
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?