From 8036303125590708770
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a740a5eab02a5ece,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1992-11-30 18:14:29 PST
Newsgroups: comp.std.c++
Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!gumby!destroyer!cs.ubc.ca!utcsri!newsflash.concordia.ca!nstn.ns.ca!cs.dal.ca!ho
From: ho@cs.dal.ca (Ho Wai Yin "Jack")
Subject: problem with static member
Message-ID: <ByK44z.C9s@cs.dal.ca>
Sender: usenet@cs.dal.ca (USENET News)
Nntp-Posting-Host: cs.cs.dal.ca
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Date: Tue, 1 Dec 1992 01:29:22 GMT
Lines: 22

I have this annoying problem.

I have a class with one static data memeber like,

class foo{
private:
  static int goo;
  ....
  ....
  };

  when I use the g++ complier to compile the code, the linker
  seems doesn't like it. it says something about can't identity 
  ...goo...or like.
  when i look at the GNU mannal it mention the flag -fgnu-binutils
  specially for the linker to handle static definition; however,
  i don't quite figure how it works,   
  if u know the trick, can u give a hand on this please

  Jack
  .



