[KDE-India] Undefined reference to vtable
Pradeepto Bhattacharya
pradeeptob at gmail.com
Mon Jan 30 13:42:21 CET 2006
Hi Aditya,
I am wildly guessing from the information that you have provided
that you forgot to use the moc tool perhaps. Please check the
following link -> http://doc.trolltech.com/3.3/commonproblems.html
Hope that helps. :)
Cheers!
Pradeepto
On 1/30/06, Aditya Mooley <aditya.ml at gmail.com> wrote:
> I am trying to use slots and signals in a class which inherits QObject
> class.
> When I compile this program I get an error
> "/home/aditya/koppermine/src/cpgapiclient.cpp:42: undefined
> reference to `vtable for cpgAPIClient'"
>
> Here's what I am trying to do:
>
> cpgapiclient.h
> ===========
>
> #ifndef CPGAPICLIENT_H
> #define CPGAPICLIENT_H
>
> #include <qstring.h>
> #include <kio/job.h>
>
> /**
> Class to implement the API calls to the remote CPG installation.
>
> @author Aditya Mooley
> */
> class cpgAPIClient : public QObject {
>
> Q_OBJECT
>
> public:
> //cpgAPIClient(QString, QString);
> cpgAPIClient(QString);
> ~cpgAPIClient();
> void setConfigData(const QString &, const QString &, const QString &,
> const QString &);
> void jobResult(KIO::Job *);
> void jobData(KIO::Job *, const QByteArray &);
> ......
> }
>
> cpgapiclient.cpp
> =============
> cpgAPIClient::cpgAPIClient(QString method)
> { // Error is displayed for this line
> APImethod = method;
>
> connect(this, SIGNAL(conError(const QString &)), this,
> SLOT(handleConError(const QString &)));
> connect(this, SIGNAL(returnReceivedOK()), this, SLOT(receivedOK()));
> }
>
> cpgAPIClient::~cpgAPIClient()
> { // Error is displayed for this line
> }
> .............
>
> Thanks for all your help
>
> Regards,
>
> --
> Aditya Mooley
> =============================================================
> PHP Applications for E-Biz: http://www.sanisoft.com
> Coppermine Picture Gallery: http://coppermine.sf.net
> =============================================================
> _______________________________________________
> KDE-india mailing list
> KDE-india at kde.org
> https://mail.kde.org/mailman/listinfo/kde-india
>
>
>
More information about the KDE-india
mailing list