This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]