Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jul 2000 12:54:58 -0600
From:      Warner Losh <imp@village.org>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        Poul-Henning Kamp <phk@critter.freebsd.dk>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Global variables defined several times. 
Message-ID:  <200007051854.MAA42163@harmony.village.org>
In-Reply-To: Your message of "Mon, 03 Jul 2000 22:22:30 BST." <200007032222.aa41540@salmon.maths.tcd.ie> 
References:  <200007032222.aa41540@salmon.maths.tcd.ie>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200007032222.aa41540@salmon.maths.tcd.ie> David Malone writes:
: I can't find my second edition at the moment. This behavior is
: commented on in the C FAQ as something the ANSI standard describes
: as a common extension. (http://www.eskimo.com/~scs/C-faq/q1.7.html)
: It also seems to suggest it is mostly a Unix thing.

VMS's DEC CC does the same thing as our tool chain.  At least on the
VMS 4.4 system I used in college.  It got lots of other things
"different" than the unix compilers we were using (pcc derived things
for sun3 and sun4), but this it did the same.

C++ requires exactly one definition, but can have many declarations
(eg only one int foo, but many extern int foo).  Actually, conforming
C++ compilers may require exactly one definition.  This is listed in
the appendix of one of the Stroustup books as being a departure from
plain old C.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007051854.MAA42163>