This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Question on precompiled headers and gcc
- From: Ian Lance Taylor <iant at google dot com>
- To: Jason Dictos <jdictos at barracuda dot com>
- Cc: "gcc-help\ at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 20 Jul 2009 14:48:20 -0700
- Subject: Re: Question on precompiled headers and gcc
- References: <C68A1E29.7A68%jdictos@barracuda.com>
Jason Dictos <jdictos@barracuda.com> writes:
> 1. Does the .gch file have to exist in the same directory as the .h in
> order for gcc to use it?
No, but if it is in a different directory it has to come earlier in the
header search path.
> 2. How can we check to see if gcc is using a .gch file, and conversely
> how can we check to see if gcc is not using a .gch file?
The -H option will list all the included files.
Ian