Date: Mon, 7 Sep 1998 16:04:59 +0200 (CET) From: Miguel Murillo To: Michiel Uitdehaag cc: djgpp AT delorie DOT com Subject: Re: Simple pointer problem In-Reply-To: <35F3D936.3F3DFD1E@imn.nl> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-761590502-188950334-905177099=:10204" Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime AT docserver DOT cac DOT washington DOT edu for more info. ---761590502-188950334-905177099=:10204 Content-Type: TEXT/PLAIN; charset=US-ASCII > Hi, > > I've got these objects of different classes that point at eachother like > this: > (first.h) ---------------------- > #ifndef first_h > #define first_h //#include "second.h" class first; class second; > class first { > private: > second *pt; > }; > #endif > > (second.h) ----------------------- > #ifndef second_h > #define second_h // #include "first.h" class first; class second; class second { > private: > first *pt; > }; > #endif ---761590502-188950334-905177099=:10204 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="first.c" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: I2lmbmRlZiBzZWNvbmRfaA0KI2RlZmluZSBzZWNvbmRfaA0KICAvLyAjaW5j bHVkZSAiZmlyc3QuaCINCiAgY2xhc3MgZmlyc3Q7DQogIGNsYXNzIHNlY29u ZDsNCmNsYXNzIHNlY29uZCB7DQogcHJpdmF0ZToNCiAgICAgZmlyc3QgKnB0 Ow0KIH07DQojZW5kaWYNCg0K ---761590502-188950334-905177099=:10204 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="second.c" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: I2lmbmRlZiBmaXJzdF9oDQojZGVmaW5lIGZpcnN0X2gNCiAgLy8jaW5jbHVk ZSAic2Vjb25kLmgiDQogIGNsYXNzIGZpcnN0Ow0KICBjbGFzcyBzZWNvbmQ7 DQpjbGFzcyBmaXJzdCB7DQogcHJpdmF0ZToNCiAgICAgc2Vjb25kICpwdDsN CiB9Ow0KI2VuZGlmDQoNCg== ---761590502-188950334-905177099=:10204--