Re: Can I make use of precompiled header with -include?

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

 



"Zuxy Meng" <zuxy.meng@xxxxxxxxx> writes:

> We have a big project that might benefit from precompiled headers but we
> don't want to append tens of thousands of .c files with #include "master.h".
> Can we simply add -include "master.h" to CPPFLAGS during building?

Yes.

> In this
> way, is "master.h" the 1st one to be included for any .c file?

Yes.

> Will gcc make
> use of master.gch if master.h is given in command line?

Yes.

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