undefined reference to 'SomeMethod'
undefined reference to '~SomeDestructor'
C++ (Qt)class IClass{public: virtual void foo() = 0;}; class MyClass : public IClass{public: void foo();}; MyClass x;
undefined reference to `WebView::mousePressEvent(QMouseEvent*)'
undefined reference to `WebView::~WebView
undefined reference [b]to `Vcon::PluginItem::type() const' [/b]collect2: ld returned 1 exit status
./debug\pluginmanager.o: In function `PluginItem': V:\work\Qt\vcon\src\vcon-build-desktop/../vcon/pluginmanager.cpp:358: undefined reference [b]to `vtable for Vcon::PluginItem' [/b]V:\work\Qt\vcon\src\vcon-build-desktop/../vcon/pluginmanager.cpp:358: undefined reference [b]to `vtable for Vcon::PluginItem' [/b]collect2: ld returned 1 exit status
C:\Qt\2010.04\qt\demos\browser-build-desktop/../browser/bookmarks.cpp:299: undefined reference [b]to `BookmarkNode::~BookmarkNode()'[/b]
C:\Qt\2010.04\qt\demos\browser-build-desktop/../browser/xbel.cpp:49: undefined reference [b]to `vtable for BookmarkNode' [/b]
C++ (Qt)class IClass{public: virtual void foo() = 0;}; class MyClass : public IClass{public: void foo();}; MyClass x;x.foo();
#include <iostream>#include <QMainWindow>#include <QtGui/QApplication>#include <QObject>using std::cout;using std::endl;class Test : public QMainWindow{ //Q_OBJECT;public: Test(QWidget *parent = 0) : QMainWindow(parent) {} void Click() { setWindowFilePath("file.txt"); } ~Test() {}};int main(int argc, char *argv[]){ QApplication app(argc, argv); Test test; test.show(); return app.exec();}