c++ - Nested folder structure in Visual Studio - including files -
i have nested folder construction in project, each folder corresponds namespace. illustration have these 2 files:
a::b::c::myclass.h
util::otherclass.h
the problem end include statements this:
#include "../../../util/otherclass.h"
how can avoid this, possible reference project root somehow? prefer reference include path #include "/util/otherclass.h"
;
i'm using vs 2013 express
you can add together root project folder include directory list (in project's options dialog in visual studio).
then, relative files folder accessible, #include "util/otherclass.h"
work (if util
in folder listed in include directory list).
c++ visual-studio visual-studio-2013
No comments:
Post a Comment