Re: Question on precompiled headers and gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Dictos <jdictos@xxxxxxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux