Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!ncifcrf!lhc!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Redeclaration of Variables extern/static Message-ID: <15815@smoke.brl.mil> Date: 12 Apr 91 21:36:54 GMT References: <1991Apr9.055250.24257@world.std.com> <15775@smoke.brl.mil> <1991Apr10.161742.21920@zoo.toronto.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 13 In article <1991Apr10.161742.21920@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes: >In article <15775@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: >>I've never seen a UNIX C compiler that had a problem with multiple >>declarations of the same object with static linkage, so long as all >>declarations of the object included the "static" storage specifier. >Sorry Doug, you lose. The original Ritchie compiler refuses to accept >such multiple declarations. (I just tried it, to be sure my memory >was correct.) Hm, I guess the reason I don't recall that is that we upgraded our C compiler on our 6th Edition UNIX system to a 7th Edition flavor as fast as I was able to incrementally do so. (Bootstrapping to a new augmented version was a bit tricky.)