Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I think you should bold the comment on precompiled headers to point out this IMPORTANT part of your answer. Commented Nov 25, 2008 at 18:37
  • 7
    If the whole header file (except possible comments and empty lines) is within the header guards, gcc is able to remember the file and skip it if the correct symbol is defined. Commented Nov 26, 2008 at 1:02
  • 7
    @CesarB: It still has to process it in full once per compilation unit (.cpp file). Commented Mar 25, 2010 at 17:38