precompiled headers and -I- resp. iquote
Mike Stump
mrs@apple.com
Tue Jan 18 23:05:00 GMT 2005
On Jan 18, 2005, at 2:05 PM, Ralf Wildenhues wrote:
> While pondering possible gch support in libtool, the deprecation of
> -I- makes me wonder about intended use:
>
> Say I have two precompiled headers for ./foo.h,
> .libs/pic/foo.h.gch
> with -fPIC -DPIC and
> .libs/nopic/foo.h.gch
> without.
>
> I do not see a way of using them for ./bar.c
mkdir .libs/foo.h.gch
cc foo.h -o .libs/foo.h.gch/nopic
cc -fPIC foo.h -o .libs/foo.h.gch/pic
cc -I.libs bar.c
? I am sure I am missing something trivial and obvious, but I just
don't know what it is.
More information about the Gcc
mailing list