Problem with #include and virtual functions

I have a class called object that includes a object of a class called attribute.
Attribute, however, uses class object pointer's in some of its function definitions.

I got this to work by having my object.h include attribute.h, and then my attribute.cpp to include my object.h, thereby going through my object file to get at its own header file.

The problem though, is that i have classes that inherit from attribute and now their virtual functions don't work.

Could my attribute.cpp bypassing through my object.h be messing something up?
My program runs, but all my virtual functions just reference the base class.

Any insight is appreciated. Thanks.
Care to post your code for us to work with? Sounds like you may not be overriding the methods correctly
Object.h needs to include Attribute.h. Attribute.h can forward declare object. Then Attribute.cpp can include Attribute.h with no difficulties.
Topic archived. No new replies allowed.