Pages: [1]   Go Down
Author Topic: #import "../path"  (Read 756 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?

Pages: [1]   Go Up
Jump to: