Article View: gnu.g++.bug
Article #825Re: Static member doesn't link
From: Mike Stump
Date: Sat, 29 Aug 1992 14:27
Date: Sat, 29 Aug 1992 14:27
22 lines
1119 bytes
1119 bytes
You fail to provide a test case.
I suspect you have not read a recent book on C++.
You must have a definition for the static member someplace
int Class::Member = 5;
outside the { } of the class.
> From: ken@tifsim.pac.sc.ti.com (Ken Costilow)
> Message-Id: <1992Jul23.164014.13951@ticipa.pac.sc.ti.com>
> Reply-To: kenneth@lobby.ti.com (Ken Costilow)
> Organization: Texas Instruments Process Automation Center
> Date: Thu, 23 Jul 1992 16:40:14 GMT
> I can`t compile classes with static data members. I was hoping this
> was simply one of gcc's many switches, but if so I have been unable
> to find it.
> I'm using: Vax3800/Ultrix4.2, gcc 2.1, gas 1.38, binutils 1.9
> I have tried the standard ld, gnu ld, as, gas, using l
Technical Details
Message-ID:
<9208291427.AA29147@cygnus.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!mrsShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!mrs From: mrs@cygnus.com (Mike Stump) Subject: Re: Static member doesn't link Message-ID: <9208291427.AA29147@cygnus.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sat, 29 Aug 1992 14:27:28 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 23