Re: GCC & precompiled headers question

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

 



Christoph Höger wrote:
> Unfortunately g++ also allows one single precompiled header per
> compilation unit. Does anyone know why?

Because a g++ "precompiled header" is more or less a dump of the complete 
compiler state, which is loaded and from which compilation continues. 
Obviously this can only work for a single header included before any non-
comment non-whitespace line.

> And is there any way to speed up the "linking" process a little (like
> letting g++ at least preprocess the headers or something like this)?

Create a header like "all.h" which includes all the headers you actually 
want to include and precompile that one.

        Kevin Kofler

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux