This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Does gcc handle pre compiled headers (yet)?
- From: Michael Lam <mlam at c9x dot eng dot sun dot com>
- To: gcc-help at gcc dot gnu dot org
- Cc: mlam at c9x dot eng dot sun dot com
- Date: Mon, 25 Feb 2002 19:58:03 -0800 (PST)
- Subject: Does gcc handle pre compiled headers (yet)?
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)