Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#include

Status
Not open for further replies.

revit

Programmer
Oct 27, 2001
36
IL
I have 2 hpp files, each one includes a class.
each of this class has a pointer to the other, how can I make each one of them recognize the other ? thanks.
 
Dont include the header files in the .hpp files... instead include them in the .cpp file. In the .hpp files just declare the class

// .hpp file
class myClass;

class otherClass{
...
myClass mc;
}

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top