precompiled headers

Ian Lance Taylor ian@wasabisystems.com
Tue May 25 17:09:00 GMT 2004


"Yannick Beynet" <beynet@fresnes.info> writes:

> I try to use precompiled headers with gcc 3.4.0
> It's working but I notice that sometimes they are not used.
> for example in a cpp file witch starts like :
> #include "h1.H"
> #include "h2.H"
> 
> h1.H.gch is used, but most of time h2.H.gch is not used. I guess it is
> because h1.H includes some files witch are not also precompiled. Am I
> right ?

Only one precompiled header is used per compilation.  See the
documentation.

Ian



More information about the Gcc-help mailing list