|
-
Mar 19th, 2002, 01:18 AM
#1
Thread Starter
Lively Member
recursive #include calls
I have two classes that are codependant. They both have functions that call instances of the other class.
Each class is defined in its own header file. Say Class1.h and Class2.h
Right now I have #include "Class2.h" in my Class1.h file and #include "Class1.h" in my Class2.h file.
Naturally when I compile its falls into a small recursive loop before returning a C2061: syntax error.
each header file has code such that it only compiles once.
I'm using VC 6.0 is there a simple way to solve this problem short of using a lib solution?
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|