On Wed, 2007-12-26 at 17:35 +0100, Tamas Marki wrote:
> 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

How else do you propose that I make my party array available to
DrawBattle?  drawbattle.h and battle.h are each included only once...

Reply via email to