Hi. Please clarify. What kind of compilation errors can ocurr if I repeat
the same pre-processor directives (such as # include <iostream>, <string>,
etc.) on a set of two h files, and two cpp files integrated onto one Visual Studio 2010 project window? As opposed to just including the .h file in the
cpp file, eg., #include "Library.h". My understanding is that if I do a
#include "Library.h" in any subsequent files, then all the preprocessor
directive template attributes just carry over from the "base" .h file;
therefore avoiding errors.
If you have a class declaration in a header which you forget to terminate with a ; at the end, your compiler will find the error on the next line in each file that included this one. This can actually get VERY difficult to track so if you're running into something very strange, check that.