Re: confused about extern use



Chris Dollin wrote:

A compilation unit is the thing you feed to the C compiler: a
source file and its #includes.

N869
5.1 Conceptual models
5.1.1 Translation environment
5.1.1.1 Program structure
A source file together with all the headers and
source files included via the preprocessing directive
#include is known as a preprocessing translation unit.

--
pete
.



Relevant Pages

  • Re: What a translation unit is.
    ... > 5.1.1.1 Program structure ... > A source file together with all the headers and ...
    (alt.comp.lang.learn.c-cpp)
  • Re: What a translation unit is.
    ... >> A source file together with all the headers and ... No YOU read it a gain you stupid idiot you are WRONG. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: #include question
    ... > (translation units as I found them called in Bjarne Stroustrup's book). ... > I know about multiple inclusion guards, ... Correctly written headers, which includes standard ones and should ... classes and structs do nothing until a source file instantiates them ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Subroutine header
    ... I used to write headers like those, these days I lean more on my ... compilation and linking details. ... build for production release I (in line with site standards) strip out ... this unsuitable for source file headers anyway. ...
    (comp.lang.fortran)
  • Header include order
    ... - include system headers ... include application headers ... include the header associated with this source file ... Does anyone have a reasonable justification for the standard include ...
    (comp.lang.c)