EDIT
Yes main sketch compiles perfectly where this files are located.
But I don't want to duplicate common files in my all my arduino sketches withing the project, they are the same for whole project. Here my files location
--ArduinoProjects
---NodeIntercom
----NodeIntercom.ino
---MasterNode
----MasterNode.ino
----sensor.h
----sensor.cpp
----common.h
So this files are only located in MasterNode directory
And I tried to include them like this
#include "/home/iron/Arduino/What'sHappening/NetworkMaster/common.h"
#include "/home/iron/Arduino/What'sHappening/NetworkMaster/additional_functions.h"
And in common.h I include sensor.h
Also tried to include directly, but still the same
But headers files included as above works perfectly.
What is the right way to solve this problem, I don't want to duplicate this class in each folder whenever I change it.
If there is no way, maybe create symbolic link (I am using linux) ?