Go Down

Topic: #import "../path" (Read 1 time) previous topic - next topic


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131