Topic: problem with static member


Author: ho@cs.dal.ca (Ho Wai Yin "Jack")
Date: Tue, 1 Dec 1992 01:29:22 GMT
Raw View
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
  .