[KDE-India] Undefined reference to vtable

Aditya Mooley aditya.ml at gmail.com
Mon Jan 30 13:18:36 CET 2006


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
=============================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-india/attachments/20060130/840d2170/attachment.html 


More information about the KDE-india mailing list