[TriLUG] OT: C++ Question

Randy Barlow rpbarlow at ncsu.edu
Tue Jan 31 11:20:23 EST 2006


Tanner Lovelace wrote:

>
>There's your problems.  You've told the compiler to only include
>things once and then gone and included them in each other.
>That's most definitely *not* going to work because, although
>the #pragma stops the infinite recursion of includes, you reference
>them from each class so one of the classes will be defined before
>the other and won't know anything about the other.  You could try
>adding a forward declaration, but I really think you should just
>bit the bullet and rethink your code.
>  
>
Thanks Tanner!  That was definately the issue, and following Brian's 
suggestion to remove the function, all is well!

-- 
Randy Barlow
Research Assistant
Department of Electrical and Computer Engineering
North Carolina State University, Raleigh, NC
rpbarlow at ncsu.edu
http://www.electronsweatshop.com




More information about the TriLUG mailing list