On 12/26/07, Michael Sullivan <[EMAIL PROTECTED]> wrote: > In my project I have moved the majority of SDL code from the Battle > class to a new class called DrawBattle. I'm trying to build it, but > DrawBattle refuses to recognize my Battle class. I know that this isn't > finished, but I prefer to debug and rebuild as I go. I have pasted the > code for only the relevant classes:
[snip code] I didn't really read through all your code, but it seems like that you are falling into the 'recursive includes' trap, meaning that battle.h includes drawbattle.h and vice versa. Just think about it for a moment what would you do if you were the preprocessor... Confused yet? :) You might need to rethink that part a bit. HTH -- Tamas Marki
