"TR" <> writes:
> "Victor Bazarov" <> wrote in message
> news
NKPa.37554$ et...
> > > If A.h includes B.h and B.h includes A.h, then those errors will be
> there.
> >
> > Of course. The solution is not to have those circular includes.
>
> A better long-term solution is header guards, unless this is the most
> complex program he's ever going to create.
>
> Use this in your A.h and B.h files:
>
> #ifndef FILENAME_H
> #define FILENAME_H
>
> contents of header
>
> #endif
>
> or in VC++ just:
> #pragma once
>
> at the top. But it's less portable.
Huh? Include guards don't prevent circular includes - have you
actually *READ* the thread?
regards
frank
--
Frank Schmitt
4SC AG phone: +49 89 700763-0
e-mail: frank DOT schmitt AT 4sc DOT com