Hello, this is a terminal application i'm trying to make:
Qt Code:
  1. #include <QtCore/QTimer>
  2. #include <QCoreApplication>
  3. #include <QtCore/QObject>
  4. #include <QtCore/QDebug>
  5.  
  6. class checker : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. checker(QObject * o = 0) : QObject(o) {}
  11.  
  12. public slots:
  13. void check() {
  14. qDebug() << "i am going through the check() function right now!\n";
  15. }
  16. };
  17.  
  18. int main(int argc, char *argv[])
  19. {
  20. QCoreApplication a(argc, argv);
  21. QTimer * timer = new QTimer;
  22. QObject::connect(timer, SIGNAL(timeout()),new checker(timer), SLOT(checker::check()));
  23. timer->start(1000);
  24. return a.exec();
  25. }
To copy to clipboard, switch view to plain text mode 

I get this error:
Qt Code:
  1. error: undefined reference to `vtable for checker'
To copy to clipboard, switch view to plain text mode 

Can anybody explain me why?
Thanks a lot!