I use a code with different libraries, which use names like defines.h. This does not only cause conflicts for identical filenames, but also creates confusion. From which library is the defines.h include?
Including as #include <library/defines.h> would be a clean solution, but then the include path would need to be the parent directory of the library, which is rather unclean again.
Is there some way to alias the include path, so that -I/path/to/library makes the headers available under library/headername.h?
-I/path/to/library:mylibraryand then I can use the files in the folder asmylibrary/headerfile.h, where mylibrary is an alias for the full path.import foo as bar, but whatdefines.his included in C depends on the order of include paths./usr/includework. Although variations exist, many libraries expect the the include path to be-I/usr/include, so that headers can be included with a unique prefix exactly matching the directory structure.