Undefined reference - C++ linker error

前端 未结 3 1676
死守一世寂寞
死守一世寂寞 2021-01-15 06:05

I\'m getting an Undefined reference error message, on this statement:

GlobalClass *GlobalClass::s_instance = 0;

Any ideas? Code is shown be

3条回答
  •  不知归路
    2021-01-15 06:59

    If I understand what you want to do is only a matter of using this:

    GlobalClass::s_instance = 0;
    

提交回复
热议问题