How to chain include in C++? -
i don't know proper term pardon post title. wanted workspace clean , organize thought maybe should reorganize file structure of library writing game. have file structure looks this:
mylibrary/include mylibrary/src the problem on client part, oblige this:
#include "mylibrary/include/myfile.hpp" i wanted this:
#include "mylibrary/myfile.hpp" how can achieve using c++?
thank you!
if want #include "mylibrary/myfile.hpp", make include directory this:
mylibrary/include/mylibrary/*.hpp then in whatever build system using, add mylibrary/include include path.
for example, gcc add -i local/path/to/include invocation. have @ documentation specific build system instructions.
Comments
Post a Comment