【发布时间】:2016-01-30 18:25:24
【问题描述】:
我是 qt 的新手。 我有下一个继承:
class Poster : public QObject
{
Q_OBJECT
}
class SyncPoster: public Poster
{
Q_OBJECT
private slots:
... some functions
}
class TextPoster : public Poster
{
Q_OBJECT
private slots:
... some functions
}
但是组装会引发以下错误:
架构 x86_64 的未定义符号:“vtable for SyncPoster”, 参考自: SyncPoster::SyncPoster(Window*, QString const&, QString const&, QString const&, QString const&) 在 sync_poster.o 注意:缺少 vtable 通常意味着第一个非内联虚成员函数具有 没有定义。 ld:未找到架构 x86_64 的符号
这是什么意思,我做错了什么?你有什么想法吗?
【问题讨论】: