Our source tree is similar to the following format
With header and source files in every directory except in the main /src directory which only contains makefiles.
We are unable to use relative paths to indicate the location of header files in our .cpp files, for example:
when we use the particle compile cloud command the particle compiler complains: “unable to find file src/proj/headerfile1.h”. I have no idea why it injected another directory into the search path.
We would like to use both the modular particle cloud method of compiling and flashing for updating particle firmware normally and the monolithic local method of compiling and flashing for troubleshooting.
We need to indicate relative header file locations such as “…/headerfile1.h” for monolithic local compilations which causes problems when attempting to use the modular particle cloud method of compilation.
Does anybody know a way with multiple levels of subdirectories to allow both monolithic local compilations and modular cloud compilations without a bunch of #ifs in the code?