Arduino-Makefile icon indicating copy to clipboard operation
Arduino-Makefile copied to clipboard

VPATH and USER_LIB_PATH

Open sehHeiden opened this issue 8 years ago • 0 comments

Hi I am,

new to the project and liked the power this project gives in the hand of the arduino user. My problem is, that I wasn't able yet to add files that are not in the same folder.

I want to include a header and a source file to the compilation. When both are in the same folder as the .ino every thing works well. If I move both files to the parent folder, change the Makefile to use:

VPATH = ../ or

and/or:

USER_LIB_PATH = ../

I get the error message that the header included the .ino can't be found.

Addition: The Header was included into the .ino with:

#include "headername.h"
or #include <headername.h>

The dir was not specified... Thought that this was not neaded. How can I circumvent to specify the directory the header lies in the .ino?

Thanks a lot!

sehHeiden avatar Mar 06 '17 13:03 sehHeiden