Hello everyone. I was just messing with having multiple windows in one instance of the program, so I decided to make a class that keeps a list of the windows:
class cWinList
{
private:
static vector<cWindow> winList; //cWindow is my
// Window class
public:
static void Add( cWindow window );
};
Then when I define the add funtion to be this:
void cWinList::Add( cWindow window )
{
winList.push_back( window );
}
I get a linker error saying
error LNK2001: unresolved external symbol "public: static class std::vector > cWinList::winList" (?winList@cWinList@@2V?$vector@VcWindow@@V?$allocator@VcWindow@@@std@@@std@@A)
Does anyone know what I am doing wrong? Thanks.