Hello developers,
for my next project I wanted to pick different variable_xxx.h configurations in platformio ini and include them into the main code file.
I found a perfect hint at Redirecting...
(Section: -include file
Process file as if #include "file"
appeared as the first line of the primary source file.)
i tried every possible path configuration so far but the compiler never finds the relevant file.
EXAMPLE:
build_flags =
‘-include $PROJECT_DIR\readerconfigs\variables_${extra.unitid}.h’
Which then expands to:
cc1plus.exe: fatal error: ./ D:\GIT\Projectname\readerconfigs\variables_815.h: Invalid argument
… where does this ./ come from on windows? can I change something to get rid of it in platformio.ini?
Thanks a lot
Chris