put ".."
in #include
usually considered ugly and unreachable.
Each linked library that you use (such as boost) has one root in the header file hierarchy, which you must put in your "extra included directories" attribute. To enhance it is something like
`C:/lib/boost_1_49`
in this directory, you usually find a directory called boost
, where all the headers live. This causes all header headers to begin with:
#include <boost/bla/bla.hpp>
This also applies to the project you are writing. You have to decide what is the best root for your headlines and start all inclusions from there.
The only exception to this rule should be headers that are in the same directory. They can simply be included as the file name #include "same-dir-header.h"
You should also make the difference between inclusion with ""
and <>
. Quotations must be in your project, angle brackets must be external libraries (or, as some of them are, OS and C runtime libraries)
source share