Undefined reference to 'vtable for xxx'

后端 未结 6 700
野性不改
野性不改 2020-12-24 06:06
takeaway.o: In function `takeaway\':
project:145: undefined reference to `vtable for takeaway\'
project:145: undefined reference to `vtable for takeaway\'
takeaway.o         


        
6条回答
  •  滥情空心
    2020-12-24 06:30

    You may take a look at this answer to an identical question (as I understand): https://stackoverflow.com/a/1478553 The link posted there explains the problem.

    For quick solving your problem you should try to code something like this:

    ImplementingClass::virtualFunctionToImplement(){...} It helped me a lot.

提交回复
热议问题