Re: [Dev-C++] undefined reference to ...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Michal M. <mi...@mo...> - 2003-11-01 18:34:56
|
Philippe Parent wrote:
> class foo {
> private:
> static foo* m_instance;
^^^^^^^^^^^^^^^^^^^^^^^
this is only declaration, you have to define it also somewhere, e.g.:
class foo {
static foo* m_instance; // declaration
};
foo* foo::m_instance = 0; // definition
|