开发者

vtable error. "vtable for ETRun", referenced from:

开发者 https://www.devze.com 2023-01-04 08:12 出处:网络
I ha开发者_运维技巧ve an object called Run. I can instantiate in header of a class. But, when i try to do the same .cpp file the above error was popped out.

I ha开发者_运维技巧ve an object called Run. I can instantiate in header of a class. But, when i try to do the same .cpp file the above error was popped out.

vtable error. "vtable for Run", referenced from: __ZTV5Run$non_lazy_ptr in Para.o

string Para::name()
{ 
 Run* newRun = new Run;

 return mName;
}

how can i get out of this error...


This probably happens because Run is a derived class, and it has a declaration of some virtual function but this function is not implemented.

Try to check whether your problem is this case.

0

精彩评论

暂无评论...
验证码 换一张
取 消