Hi all

has anyone tried including file1.h to file2.h and at the same time
include file2.h to file1.h, and yet get them to properly compiled?
Would putting their class contents in the same file help to solve this
problem? Are there any work around?

Thanks
Ponce

Re: help with c++ by please

please
Tue Feb 07 08:18:09 CST 2006

ponce schrieb:
> Hi all
>
> has anyone tried including file1.h to file2.h and at the same time
> include file2.h to file1.h, and yet get them to properly compiled?
> Would putting their class contents in the same file help to solve this
> problem? Are there any work around?
>
> Thanks
> Ponce

Two hints:
1. include guards
2. forward declarations

/S
--
Stefan Naewe
naewe.s_AT_atlas_DOT_de

Re: help with c++ by ponce

ponce
Thu Feb 09 10:06:45 CST 2006

Yes! It works now... thanks :D

Stefan Näwe wrote:
> ponce schrieb:
>
>>Hi all
>>
>>has anyone tried including file1.h to file2.h and at the same time
>>include file2.h to file1.h, and yet get them to properly compiled?
>>Would putting their class contents in the same file help to solve this
>>problem? Are there any work around?
>>
>>Thanks
>>Ponce
>
>
> Two hints:
> 1. include guards
> 2. forward declarations
>
> /S