Hi, I have a simple problem, most likely faced by someone before.
I have 3 classes Cell, Juxtacrine and Morphogen. Juxtacrine is derived from Cell, and Morphogen is derived from Cell also.
Basically the two derived classes both include the Cell.h to find the definition of Cell.
The problem comes when i need to use the Objects in the main function eg
This obviously causes the circular include, and was wondering if there is a way to use preprocessor directives to stop this happening eg
But this doesnt seem to fix it. Has anyone got an idea how to get around this? I dont really want to have to work out what class includes what as ill have several classes with multiple inheritence later on, which will cause a headache working out the circular includes if i do it manually...
Heres my code if u need it...
virtual void signal();
class Juxtacrine : public Cell
Im Using WinXP / VC++ (if needed)
class Morphogen : public Cell