【QT 问题】undefined reference to 'vtable for' 或者 'staticMetaObject' is not a membe
作者:互联网
undefined reference to ‘vtable for’
参考链接:https://blog.csdn.net/wangzhiqian7hao/article/details/83446696#commentBox
Qt Creator可能没有反应过来你添加的代码。需要使用Qt Creator的
Build->clean all
然后一定要删除build-××××-Debug
下面的Makefile
文件
然后使用Build->Build All
就额可以了。
‘staticMetaObject’ is not a member of ‘QBaseObject’
参考链接:https://wenku.baidu.com/view/a40b258c6529647d27285202.html
一般是因为你采用了多继承的方式,继承顺序需要调整。
例如将
class QRTUbloxPPPModel: public QBaseObject, public QObject
调整为:
class QRTUbloxPPPModel: public QObject, public QBaseObject
就可以了。
标签:staticMetaObject,vtable,reference,member,Build,https,QBaseObject,public 来源: https://blog.csdn.net/xiaoxiao133/article/details/100797608