storage class ambiguity - (nf)

notes at ucbcad.UUCP notes at ucbcad.UUCP
Fri Nov 4 01:54:02 AEST 1983


#R:aecom:-22300:ucbesvax:4800030:000:355
ucbesvax!turner    Nov  3 02:53:00 1983

Re: john at genrad's comments.

> cat t.c
    extern int foo;
    main() { printf ("%d\n", foo); }
> cat t1.c
    extern int foo;
    f(){}
> cc t.c t1.c
t.c:
t1.c:
Undefined:
_foo

{~ Golly, I guess 4.2bsd cc is just plain WRONG WRONG WRONG. ~}

John, please reread K&R.  I don't think your inference is correct.
---
Michael Turner (ucbvax!ucbesvax.turner)



More information about the Comp.lang.c mailing list