On Mon, Apr 6, 2009 at 1:18 PM, Jos Timanta Tarigan
<[email protected]> wrote:
>
> nope, still not working.
> is it forbiden to implement in header files? not that i remember. all i did
> is move the implementation to header files. it shohuldve been very simple
> rite?

When you are defining a static member in a class, you need to define
the 'storage space'. Let me demonstrate with a simple example:

header file:

class MyStatic
{
    static int array[100];
};

implementation file:

static int MyStatic::array[100]; // this is the storage definition

Don't do this in the header file, as it can create problems when more
source files include it (multiple definition).
I hope this helps.

-- 
Tamas Marki

Reply via email to