C++ include with full path
I find #include "../app/thing.h" very ugly and I would like to be able to import from the main root of my project, like this: #include <project/app/submodule/thing.h> (I know <> is generally used for external but I find it very cleaner) How can I do that, from anywhere in my project? You simply need to ensure that your build process sets an option to specify the starting point of the search. For example, if your header is in: /work/username/src/project/app/submodule/thing.h then you need to include (assuming a POSIX-compliant compiler; AFAICR, even MSVC uses /I as the analogue of -I ): -I/work