I am new to C++ and cant get my program to compile because of #include recursion.
I have 3 classes A, B, C.
A includes B.h and C.h
B includes A.h
C includes A.h and B.h
They include each other because they either need to send messages between themselves.
No inheritance is involved.
I've tried using:
#ifndef
#define
.........
#endif
but because A and B are included twice they dont get included the second time.
Any ideas for a C++ beginner who's spent the last 2 days trying to botch something togeather?
Thanks,
James