Does gcc handle pre compiled headers (yet)?

Michael Lam mlam@c9x.eng.sun.com
Mon Feb 25 21:23:00 GMT 2002


I have seen an article on gcc being able to pre-compile headers
and use the pre-compiled header code to speed up later compilation:

cc -c foo.h // this should generate a foo.pch file - the code for foo.h

However, when I used gcc 3.0, all I got is the message:

gcc: Compilation of header file requested

No foo.pch is generated.

Can someone tell me if there is anything that I can fix here?

Thanks.

-Michael Lam (SUN Microsystems)



More information about the Gcc-help mailing list