precompiled headers

John Love-Jensen eljay@adobe.com
Tue Jan 21 13:01:00 GMT 2003


Hello Adrian,

I may be mistaken, but I don't think there are precompiled headers in GCC
3.2.

However, I'm surprised that it's taking so long.  I work with some massively
large projects, and the compiles don't take an egregious amount of time.
(On a 400MHz SPARC.)

Do your source files (.cpp and .h) include only the headers they need, or
are they including the world?

If they're including the world, I strongly suggest your project team
discipline themselves to only include things that are directly needed by
that source file.  And NEVER rely on incidental inclusion of a needed header
file merely because some other included header file happens to include it.

--Eljay



More information about the Gcc-help mailing list