Mail Archives: djgpp/1998/07/09/10:56:02
> class Interface {
> static Interface killer; // ****** here it is
When the compiler finds the above declaration it thinks: "Ok, now I know
there will be a static Interface object named 'Interface::killer'
somewhere". Then you can do references to that object, like these ones:
> return (&killer);
> } while (interface != &Interface::killer);
The error reported by the linker is because you didn't put a
"definition" in any module. You can put the folowing line in the
corresponding Interface.CPP file:
Interface Interface::killer;
This will allocate the memory needed by the instance. Your linker will
be happy and that's all.
Bye.
- Raw text -