Alright so I'm making something, and I've got quite a few .h files. Usually I never really have had issues with them, but right now when I #include spawner.h or AI_Handler.h inside of terrain.h, I get a stream of errors. It says a bunch of classes aren't declared, and that template arguments are invalid. The issue
Main.cpp
All of your header files start with #ifndef something , but where is your #endif at the end of the file? Another possibility could be the order you have put the header files in main. Maybe it is just me, but I like to include header files with "<>" first and then files with "" second. After that you may be trying to include a header file that depends on another header file first, but is included after.
I've found the issue, I'm trying to make terrain access spawner/AI_Handler, and both of those access characters, and characters has access to terrain. Is there a way to have terrain link to AI_Handler/spawner while retaining the character links? I might have an idea, but if there's some way you're meant to do it, I'd like to find out thanks