C linkage query

Andrew Koenig ark at alice.UUCP
Tue Jun 13 11:01:22 AEST 1989


In article <186 at cbnewsd.ATT.COM>, tainter at cbnewsd.ATT.COM (johnathan.tainter) writes:
> In article <1795 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
> >I.e., if you compile a file containing
> >	extern int foo;
> >	main() {}
> >and link that *with no other object files and with no libraries that
> >define "foo"*, will the link fail?

I recently asked a similar question.

I have since learned that this is explicitly legal in ANSI C.
The only compilers people have mentioned that DON'T handle
it correctly are on desktop micros of various sorts.
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.lang.c mailing list