class myclass1 { unsigned b0; unsigned b1; unsigned b2; unsigned b3; public: static myclass1 *myclass1_p;
void ff(void) { myclass1_p=this; }
};
myclass1 myclass1_obj; void myfunc(void) { myclass1_obj.ff(); }
编译不出错,build出错,提示如下:
undefined first referenced symbol in file --------- ---------------- myclass1::_myclass1_p
请教,到底怎么回事? |