What is the correct syntax in C++ to include a header in a child directory of a parent directory of the current directory?
Is it this:
#include "/../../example_header.h/headers"
or is it this:
#include "/../../headers/example_header.h"
?
Also, is the syntax the same for this across every OS, or does it differ from XP to Ubuntu, for example?



LinkBack URL
About LinkBacks




There are two different directories which have very similar names. One is named "module" and the other is named "modules". I explained it clearly in my last post, but you appear to have got it confused in your mind. "CtextToSpeechDialog1" (which contains the source "CtextToSpeechDialog1.cpp") IS located in a directory called "module". However, it in turn is located in a directory called "TextToSpeechDialog1". Now, one more directory up (i.e. "TextToSpeechDialog1"'s parent directory) is located the "modules" (plural, notice the "s" at the end) directory. Now, in this "modules" directory is located "TextToSpeechDialog2" which is where the header I'm including is located.