Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 7/7/83; site rlgvax.UUCP
Path: utzoo!linus!security!genrad!decvax!harpo!seismo!rlgvax!guy
From: guy@rlgvax.UUCP (Guy Harris)
Newsgroups: net.unix-wizards
Subject: Re: UNIX source code errors detected by new C compiler
Message-ID: <833@rlgvax.UUCP>
Date: Sun, 17-Jul-83 03:11:49 EDT
Article-I.D.: rlgvax.833
Posted: Sun Jul 17 03:11:49 1983
Date-Received: Sun, 17-Jul-83 13:21:20 EDT
References: <578@hao.UUCP>,  <707@uw-beaver>
Organization: CCI Office Systems Group, Reston, VA
Lines: 9

The trouble is that multiple global definitions aren't seen by the compiler
(unless you do something strange) but by the linker.  The UNIX 5.0 (System V)
linker DOES forbid them, I believe.  (BTW, the "=+" operators and
initializations without "=" are no longer supported by the 5.0 C compiler.)
I have gotten into the habit of using "extern" in all declarations in include
files and putting the definition of the global in only one source file.

	Guy Harris
	{seismo,mcnc,we13,brl-bmd,allegra}!rlgvax!guy