Recommended Posts

I'm writing an application wrapper class. This is the piece of my code that causes problems:
class CApplication
{
...
public:
static bool Keys[256];
...
};
The array is initialized in the constructor. In the WndProc function, I want to use it to store keyboard data, like this:
case WM_KEYDOWN:
{
CApplication::Keys[wParam] = true;
return 0;
}
The program compiles, but I get a linker error:
d:\programming\hypercube\application.o(.text+0xa74):application.cp: undefined reference to `CApplication::Keys'
I use Bloodshed DevC++.