help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ bug


From: matrut
Subject: g++ bug
Date: 17 Apr 2006 02:58:30 -0700
User-agent: G2/0.2

Hello!

I'm having big trouble with my easy class:

class CSignal
{
public:
    CSignal(void)
  {
         m_this = this;
  };

    ~CSignal(void);

protected:
      static CSignal *m_this;
}:

and after linking the output is af follows:

: undefined reference to `CService::m_this'

The code works on Visual Studio C++ and what's the matter about g++?
What's the sollution?
Thanks in advance for help. Matt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]