Xref: utzoo comp.lang.c:38298 news.software.b:7477 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!romp!auschs!awdprime!sanders.austin.ibm.com!sanders From: sanders@cactus.org (Tony Sanders) Newsgroups: comp.lang.c,news.software.b Subject: Re: Redeclaration of Variables extern/static Keywords: scope, ibm, c news Message-ID: <6686@awdprime.UUCP> Date: 16 Apr 91 00:57:22 GMT References: <^R+_H3-@uzi-9mm.fulcrum.bt.co.uk> Sender: news@awdprime.UUCP Reply-To: Tony Sanders Followup-To: comp.lang.c Organization: IBM AWD, Austin Lines: 13 Originator: sanders@sanders.austin.ibm.com In article <^R+_H3-@uzi-9mm.fulcrum.bt.co.uk> igb@fulcrum.bt.co.uk (Ian G Batten) writes: >On an IBM RS/6000 (it wasn't my idea) in generates an identifier >redeclared error and exits during compilation. To work around the problem you can simply change the name of the thing so it doesn't conflict with anything else (if it's called foo rename it to my_foo) and then remove the "static". Ugly but it works. -- sanders@cactus.org I am not an IBM representative, I speak only for myself. I have a wonderful proof that emacs is better than vi, only this .sig is too small to contain it.