Welcome! Log In Create A New Profile

Advanced

angry smiley Assignment Q - vtable error

Posted by Spectre 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
angry smiley Assignment Q - vtable error
August 26, 2011 10:35PM
Hi again.

Language: C++ (QT)
#include <QApplication> #include <QLCDNumber> #include <QPushButton> #include <QVBoxLayout> #include <QWidget> #include <QLineEdit> #include <QObject>   class SimpleCalculator : public QWidget   {   Q_OBJECT   public: //default constructor SimpleCalculator(QWidget *parent = 0); };   SimpleCalculator::SimpleCalculator(QWidget *parent)   { // edited out - not shown here for obvious reasons }

When I try to compile this, I always get vtable error. I don't know what to do now angry smiley I need to add some user-defined slots in order to complete this project. I even included QObject header file since Q_OBJECT macro requires it. It just doesn't work at all.

The other day I created a program similiar to this one and it worked just fine.
angry smiley Re: Assignment Q - vtable error
August 26, 2011 10:55PM
Hey, I figured out a way to solve this problem smiling smiley

By using Separate compilation!
Sorry, only registered users may post in this forum.

Click here to login