@jelydonut
It sounds like a multiple including. This usually causes errors so you might want to use an #ifndef statement.
I'm not sure if you have c++ book so I'll give example.
********Class File*******
#ifndef MyType_h
#define MyType_h
.
.
.
.
#endif
*******End Class File******
What this does is, if this class is included from a main function call (#include), the ifndef determines if it defined earlier.
If it was, don't re define. But if it wasen't, then continue to the end (#endif).
Hope this helps
WA