Redeclaration of Variables extern/static

Tony Sanders sanders at cactus.org
Tue Apr 16 10:57:22 AEST 1991


In article <^R+_H3- at uzi-9mm.fulcrum.bt.co.uk> igb at 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 at 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.



More information about the Comp.lang.c mailing list