C linkage query

Steve Lamont spl at mcnc.org
Thu Jun 8 21:34:35 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?
<-- 
<				--Andrew Koenig
<				  ark at europa.att.com

Works for me.  That is, it compiles and links on our BSD VAX and my SGI
IRIS 4D/120.

Hope this was the answer you were looking for :-).
-- 
							spl
Steve Lamont, sciViGuy			EMail:	spl at ncsc.org
North Carolina Supercomputing Center	Phone: (919) 248-1120
Box 12732/RTP, NC 27709



More information about the Comp.lang.c mailing list