I kept on getting this STUPID error when programming this big project when I’d try to #include header files that had class definitions in them.
The compiler would pretend like it didn’t know the type, even though I GAVE IT THE HEADER FILE.
The answer was to provide a STUPID forward declaration of the type:
class Typename ;
EVEN THOUGH I FULLY INCLUDED THE HEADER!!