Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!uw-june!uw-entropy!dataio!bright From: bright@Data-IO.COM (Walter Bright) Newsgroups: comp.lang.c++ Subject: Re: Zortech bugs Message-ID: <1870@dataio.Data-IO.COM> Date: 10 Feb 89 21:09:25 GMT References: <2118@windy.dsir.govt.nz> <4800049@m.cs.uiuc.edu> <2285@uqcspe.cs.uq.oz> Reply-To: bright@dataio.Data-IO.COM (Walter Bright) Organization: Data I/O Corporation; Redmond, WA Lines: 18 In article <2285@uqcspe.cs.uq.oz> tonyo@qitfit.qitcs.oz (Tony O'Hagan) writes: >I have a similar problem ... Zortech won't link multiple object files >created from a header containing a class with static variables. Declaring the class: class abc { static int def = 3; }; Will cause multiple definitions (because common blocks cannot have initializers). It should be declared as: class abc { static int def; }; and then in ONE of the modules: int abc::def = 3; However, the int abc::def=3; is not implemented yet, but I will do it soon.