
请问bug如何解决,看了很久没有知道答案请,error LNK2001: 无法解析的外部符号 "public: virtual class CGunner *
thiscall CPlyerPlant::SendGunner(struct HINSTANCE *)" (?SendGunner
@CPlyerPlant@@UAEPAVCGunner@@PAUHINSTANCE__@@@Z)两种方式修改:
(1)在cpp中添加函数的实现;
(2)在函数后面加上 = 0。如下:
virtual CGunner *SendGunner(HINSTANCE *hIns) = 0;
找不到 CPlyerPlant类的SendGunner函数的实现代码,只有函数申明