Re: help

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Dave Longley on April 22, 2001 at 18:04:52:

In Reply to: Re: help posted by Z on April 22, 2001 at 17:58:53:

Comment out your ecosystem/manager/whatever pointer and compile to check to make sure your forward declarations are working properly. If it compiles with appropriate code commented out, then you aren't doing your forward declarations right.

: Yes i'm having the same problem as Chris, and yes
: i have included Animal.h and even tried a forward
: declaration of Animal.h, and it still doesnt work

: : : I have Grendel, Browser, and Grazer derived from my
: : : Animal class, but i'm getting an error in each one
: : : of those header files Grendel.h , Browser.h , and
: : : Grazer.h , saying that the "base class Animal is undefined"
: : : Why is this happening? Thanks

: : Geez, Z, you and I seem to have the same problems. Wish I could help you with this one, too, but I don't have the answer yet, either. I have an animal class with grendel and an herbivore class derived from it, and grazer and browser derived from herbivore. It's the grazer and browser classes that turn up the "'Herbivore' : base class undefined" errors.

: : So, anyways, I could use help from any or all kind souls reading this message board. Yes, herbivore.h is included in both Browser and Grazer.

Follow Ups:

Post a Followup




Optional Link URL:
Link Title:
Optional Image URL:

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]