Article View: gnu.gcc.help
Article #51017static members with gcc
From: Bruno Jullien
Date: Tue, 13 Jul 1993 08:07
Date: Tue, 13 Jul 1993 08:07
13 lines
991 bytes
991 bytes
Bruno Jullien, SITA, Nice, France (bj@rd-sita.fr) Workstation: Sun SPARCstation 10 SunOS 4.1.3 Using gcc 2.4 and having a static member x in a class A, we are obliged to declare it as an extern variable of the class A (i.e. int A::x). Is there another solution ? Is it a design choice or a linkage problem. Best Regards from "French Riviera". bj.
Technical Details
Message-ID:
<9307130802.AA02864@hellraiser.rd-sita.fr>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!pipex!uunet!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!hellraiser.rd-sita.FR!bjShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,4bf175dc50160114,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-07-13 01:18:34 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!pipex!uunet!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!hellraiser.rd-sita.FR!bj From: bj@hellraiser.rd-sita.FR (Bruno Jullien) Newsgroups: gnu.gcc.help Subject: static members with gcc Date: 13 Jul 1993 04:07:18 -0400 Organization: GNUs Not Usenet Lines: 13 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9307130802.AA02864@hellraiser.rd-sita.fr>