Just can't stay away
Joined: 2009/10/7 1:11 Last Login
: 10/27 15:47
From Odense
Group:
Registered Users
|
Sorry to bother everyone again with my petty programming knowledge...
When linking a c++ project I get this strange error:
Quote: "libQtGui.a(qprintdialog_unix.o):(.got2+0x94): undefined reference to `vtable for QUnixPrintWidget'"
The class QUnixPrintWidget (defined in 'qprintdialog.h') looks something like this:
Quote: "class Q_GUI_EXPORT QUnixPrintWidget : public QWidget { Q_OBJECT
public: QUnixPrintWidget(QPrinter *printer, QWidget *parent = 0); ~QUnixPrintWidget(); void updatePrinter();
private: friend class QPrintDialogPrivate; friend class QUnixPrintWidgetPrivate; QUnixPrintWidgetPrivate *d; Q_PRIVATE_SLOT(d, void _q_printerChanged(int)) Q_PRIVATE_SLOT(d, void _q_btnBrowseClicked()) Q_PRIVATE_SLOT(d, void _q_btnPropertiesClicked()) };"
The three methods are defined in 'qprintdialog_unix.cpp'.
I know that vtable has something to do with virtual functions, but I have no clue how it actually works. I've read ao. a gcc faq-entry that talks about this, something with "non-pure-virtual" and "out-of-line" virtual functions, but I don't really understand what it says. Can anyone help?
|