[KDE-India] Undefined reference to vtable

Aditya Mooley aditya.ml at gmail.com
Mon Jan 30 13:45:35 CET 2006


On 1/30/06, Pradeepto Bhattacharya <pradeeptob at gmail.com> wrote:
>
> 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


Indeed, that was the problem. Ananth replied to me just a while back.

       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
> >
> >
> >
> _______________________________________________
> KDE-india mailing list
> KDE-india at kde.org
> https://mail.kde.org/mailman/listinfo/kde-india
>



--
Aditya Mooley
=============================================================
PHP Applications for E-Biz: http://www.sanisoft.com
Coppermine Picture Gallery: http://coppermine.sf.net
=============================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-india/attachments/20060130/1b6b3dfd/attachment.html 


More information about the KDE-india mailing list