C linkage query

Norman Diamond diamond at diamond.csl.sony.junet
Fri Jun 9 14:25:11 AEST 1989


In article <9449 at alice.UUCP> ark at alice.UUCP (Andrew Koenig) writes:

>Does anyone have a C compiler + linker incapable of handling this:
>	extern int foo;
>	main() { }
>That is: are there any C implementations that turn an
>`extern' declaration for a variable that is never actually
>referenced into a genuine external reference that inhibits
>linking?

Does it matter if any news reader actually has one?  Such things are
permitted to exist (or were permitted to; and this looks like the kind
of thing that ANSI didn't dare to touch).  If such things exist, they
are most likely on machines which aren't capable of receiving this
kind of news.  If they don't exist, they still might some day.  You
should never overestimate your opponents either ;-).

--
Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.co.jp at relay.cs.net)
 The above opinions are my own.  However, if you see this at Waterloo, Stanford,
 or Anterior, then their administrators must have approved of these opinions.



More information about the Comp.lang.c mailing list