0
点赞
收藏
分享

微信扫一扫

报错error: undefined reference to `vtable for的解决方法

源码之路 2022-03-12 阅读 192

一、现象

因为偷懒,在没有.h头文件和.cpp文件的情况下,将实现都写在main.cpp中

二、解决

在末尾添加

#include "main.moc"

举报

相关推荐

0 条评论