My c++ project in summary is composed of two directories and of course the main.cpp
:
Dataloader
containing dataloader.h and dataloader.cppAnalysis
containing analysis.h and analysis.cpp
in dataloader.h I included analysis.h as follows:
#include<../Analysis/analysis.h>
My professor told me that it's a BIG NO NO!!!!!. We were trying to create a makefile and he was surprised. Why is it a bad practice? and how can I make the include simpler. I am working on code::blocks
and gcc 4.8 compiler.
N.B. I noticed that code::blocks some how forgives include errors. When we tried to compiled it by using gcc command it went bad