I've got a class where I'm creating a static variable which is a pointer. In the implementation file, in the cpp file, I reference this pointer and I get the unresolved external symbol... What am I doing wrong? I'm trying to implement a singleton ... The code below is what I believe is just the essentials.....
/// this is the .h file.....
static CDatabase * m_pDatabase; //// if I comment out this line, no more error.......
///// cpp file:
m_pDatabase = new CDatabase();