hi guys,
While compiling at the time of linking , am getting the error : undefined reference to `vtable for ChemHeaderFooterOptions'
see .pro file
TEMPLATE = app
LANGUAGE = C++
CONFIG += qt warn_on debug
unix:LIBS += -lXext -lm
DEFINES += SYNSUP_GUI
QT += qt3support
INCLUDEPATH += . ./common
unix:MOC_DIR += ../source/linuxmoc
unix:OBJECTS_DIR += ../source/linuxobj
win32:MOC_DIR += ../source/Winmoc
win32:OBJECTS_DIR += ../source/Winobj
unix:UI_HEADERS_DIR = ../source/dlg
win32:UI_HEADERS_DIR = ../source/dlg
unix:UI_SOURCES_DIR = ../source/dlg
win32:UI_SOURCES_DIR = ../source/dlg
HEADERS += atomgroup.h \
atomicnumber.h \
canonlist.h \
chemcanvas.h \
chemedit.h \
chemenums.h \
chemglobals.h \
chemicons.h \
chemmap.h \
chemobj.h \
chemstate.h \
chemstructs.h \
chemtree.h \
chemtreecanvas.h \
chemutils.h \
common/atomarray.h \
common/rownumberarray.h \
common/alist.h \
common/atom.h \
common/atominring.h \
common/atompair.h \
common/availmol.h \
common/basefragment.h \
common/basemolecule.h \
common/commondec.h \
common/fglist.h \
common/integerlist.h \
common/nbrlist.h \
common/ring.h \
common/ringpair.h \
common/synsupmatrix.h \
common/synsupvector.h \
common/twoatomsinring.h \
common/utils.h \
coord.h \
ct.h \
datom.h \
dbond.h \
dgroup.h \
dlg/AtomPropertiesDlg.h \
dlg/BondPropertiesDlg.h \
dlg/BondPropertiesDlgData.h \
dlg/CmbeditInfo.h \
dlg/CanvasPaperDlg.h \
dlg/Functionalgrouplimitdlg.h \
dlg/HeaderFooterInfoDlg.h \
dlg/MySpinBox.h \
dlg/PageSetupDlg.h \
dlg/ServerPreferences.h \
dlg/SynsupMail.h \
dlg/SynsupOptionsDlg.h \
dlg/SynsupOptionsDlgData.h \
dlg/SynViewerPropertyDlg.h \
dlg/ViewPreferences.h \
dmolecule.h \
dreaction.h \
dring.h \
droute.h \
dsymbol.h \
dtext.h \
elemchooser.h \
fontchooser.h \
headerAndFooterFormatter.h \
headerFooterOptions.h \
mappings.h \
molproperty.h \
route.h \
scrollchemcanvas.h \
smtp.h \
showToolTip.h \
synViewerproperty.h \
synsupoptions.h \
templatechooser.h \
wcpoint.h \
zoomer.h
SOURCES += atomgroup.cpp \
chemcanvas.cpp \
chemedit.cpp \
chemglobals.cpp \
chemicons.cpp \
chemmap.cpp \
chemobj.cpp \
chemstate.cpp \
chemtree.cpp \
chemtreecanvas.cpp \
chemutils.cpp \
common/rownumberarray.cpp \
common/alist.cpp \
common/atom.cpp \
common/atominring.cpp \
common/atompair.cpp \
common/basefragment.cpp \
common/basemolecule.cpp \
common/basestereo.cpp \
common/canon.cpp \
common/fglist.cpp \
common/integerlist.cpp \
common/nbrlist.cpp \
common/ring.cpp \
common/ringpair.cpp \
common/rings.cpp \
common/twoatomsinring.cpp \
common/utils.cpp \
coord.cpp \
ct.cpp \
datom.cpp \
dbond.cpp \
dgroup.cpp \
dlg/AtomPropertiesDlg.cpp \
dlg/BondPropertiesDlg.cpp \
dlg/BondPropertiesDlgData.cpp \
dlg/CmbeditInfo.cpp \
dlg/CanvasPaperDlg.cpp \
dlg/Functionalgrouplimitdlg.cpp \
dlg/HeaderFooterInfoDlg.cpp \
dlg/MySpinBox.cpp\
dlg/PageSetupDlg.cpp \
dlg/ServerPreferences.cpp \
dlg/SynsupMail.cpp \
dlg/SynsupOptionsDlg.cpp \
dlg/SynsupOptionsDlgData.cpp \
dlg/SynViewerPropertyDlg.cpp \
dlg/ViewPreferences.cpp \
dmolecule.cpp \
dreaction.cpp \
dring.cpp \
droute.cpp \
dsymbol.cpp \
dtext.cpp \
elemchooser.cpp \
fontchooser.cpp \
headerAndFooterFormatter.cpp \
headerFooterOptions.cpp \
main.cpp \
mappings.cpp \
molproperty.cpp \
ncoord.cpp \
route.cpp \
scrollchemcanvas.cpp \
synViewerproperty.cpp \
smtp.cpp \
ShowToolTip.cpp \
synsupoptions.cpp \
templatechooser.cpp \
zoomer.cpp
FORMS += dlg/SynsupMailDlg.ui \
dlg/Functionalgrouplimitdlg.ui \
dlg/PageSetupDlg.ui \
dlg/ServerPreferencesDlg.ui \
dlg/AtomPropertiesDlgData.ui \
dlg/SynsupOptionsDlgData.ui \
dlg/SynViewerPropertyDlg.ui \
dlg/HeaderFooterInfoDlg.ui \
dlg/ViewPreferencesDlg.ui \
dlg/InfoDlg.ui \
win32:TMAKE_CFLAGS = -TP
win32:TMAKE_CXXFLAGS = -GX
win32:RC_FILE = chemedit.rc
CONFIG += non_threaded
TARGET = cmbedit
TRANSLATIONS = chemedit_en.ts \
chemedit_jp.ts
#The following line was inserted by qt3to4
QT +=
TEMPLATE = app
LANGUAGE = C++
CONFIG += qt warn_on debug
unix:LIBS += -lXext -lm
DEFINES += SYNSUP_GUI
QT += qt3support
INCLUDEPATH += . ./common
unix:MOC_DIR += ../source/linuxmoc
unix:OBJECTS_DIR += ../source/linuxobj
win32:MOC_DIR += ../source/Winmoc
win32:OBJECTS_DIR += ../source/Winobj
unix:UI_HEADERS_DIR = ../source/dlg
win32:UI_HEADERS_DIR = ../source/dlg
unix:UI_SOURCES_DIR = ../source/dlg
win32:UI_SOURCES_DIR = ../source/dlg
HEADERS += atomgroup.h \
atomicnumber.h \
canonlist.h \
chemcanvas.h \
chemedit.h \
chemenums.h \
chemglobals.h \
chemicons.h \
chemmap.h \
chemobj.h \
chemstate.h \
chemstructs.h \
chemtree.h \
chemtreecanvas.h \
chemutils.h \
common/atomarray.h \
common/rownumberarray.h \
common/alist.h \
common/atom.h \
common/atominring.h \
common/atompair.h \
common/availmol.h \
common/basefragment.h \
common/basemolecule.h \
common/commondec.h \
common/fglist.h \
common/integerlist.h \
common/nbrlist.h \
common/ring.h \
common/ringpair.h \
common/synsupmatrix.h \
common/synsupvector.h \
common/twoatomsinring.h \
common/utils.h \
coord.h \
ct.h \
datom.h \
dbond.h \
dgroup.h \
dlg/AtomPropertiesDlg.h \
dlg/BondPropertiesDlg.h \
dlg/BondPropertiesDlgData.h \
dlg/CmbeditInfo.h \
dlg/CanvasPaperDlg.h \
dlg/Functionalgrouplimitdlg.h \
dlg/HeaderFooterInfoDlg.h \
dlg/MySpinBox.h \
dlg/PageSetupDlg.h \
dlg/ServerPreferences.h \
dlg/SynsupMail.h \
dlg/SynsupOptionsDlg.h \
dlg/SynsupOptionsDlgData.h \
dlg/SynViewerPropertyDlg.h \
dlg/ViewPreferences.h \
dmolecule.h \
dreaction.h \
dring.h \
droute.h \
dsymbol.h \
dtext.h \
elemchooser.h \
fontchooser.h \
headerAndFooterFormatter.h \
headerFooterOptions.h \
mappings.h \
molproperty.h \
route.h \
scrollchemcanvas.h \
smtp.h \
showToolTip.h \
synViewerproperty.h \
synsupoptions.h \
templatechooser.h \
wcpoint.h \
zoomer.h
SOURCES += atomgroup.cpp \
chemcanvas.cpp \
chemedit.cpp \
chemglobals.cpp \
chemicons.cpp \
chemmap.cpp \
chemobj.cpp \
chemstate.cpp \
chemtree.cpp \
chemtreecanvas.cpp \
chemutils.cpp \
common/rownumberarray.cpp \
common/alist.cpp \
common/atom.cpp \
common/atominring.cpp \
common/atompair.cpp \
common/basefragment.cpp \
common/basemolecule.cpp \
common/basestereo.cpp \
common/canon.cpp \
common/fglist.cpp \
common/integerlist.cpp \
common/nbrlist.cpp \
common/ring.cpp \
common/ringpair.cpp \
common/rings.cpp \
common/twoatomsinring.cpp \
common/utils.cpp \
coord.cpp \
ct.cpp \
datom.cpp \
dbond.cpp \
dgroup.cpp \
dlg/AtomPropertiesDlg.cpp \
dlg/BondPropertiesDlg.cpp \
dlg/BondPropertiesDlgData.cpp \
dlg/CmbeditInfo.cpp \
dlg/CanvasPaperDlg.cpp \
dlg/Functionalgrouplimitdlg.cpp \
dlg/HeaderFooterInfoDlg.cpp \
dlg/MySpinBox.cpp\
dlg/PageSetupDlg.cpp \
dlg/ServerPreferences.cpp \
dlg/SynsupMail.cpp \
dlg/SynsupOptionsDlg.cpp \
dlg/SynsupOptionsDlgData.cpp \
dlg/SynViewerPropertyDlg.cpp \
dlg/ViewPreferences.cpp \
dmolecule.cpp \
dreaction.cpp \
dring.cpp \
droute.cpp \
dsymbol.cpp \
dtext.cpp \
elemchooser.cpp \
fontchooser.cpp \
headerAndFooterFormatter.cpp \
headerFooterOptions.cpp \
main.cpp \
mappings.cpp \
molproperty.cpp \
ncoord.cpp \
route.cpp \
scrollchemcanvas.cpp \
synViewerproperty.cpp \
smtp.cpp \
ShowToolTip.cpp \
synsupoptions.cpp \
templatechooser.cpp \
zoomer.cpp
FORMS += dlg/SynsupMailDlg.ui \
dlg/Functionalgrouplimitdlg.ui \
dlg/PageSetupDlg.ui \
dlg/ServerPreferencesDlg.ui \
dlg/AtomPropertiesDlgData.ui \
dlg/SynsupOptionsDlgData.ui \
dlg/SynViewerPropertyDlg.ui \
dlg/HeaderFooterInfoDlg.ui \
dlg/ViewPreferencesDlg.ui \
dlg/InfoDlg.ui \
win32:TMAKE_CFLAGS = -TP
win32:TMAKE_CXXFLAGS = -GX
win32:RC_FILE = chemedit.rc
CONFIG += non_threaded
TARGET = cmbedit
TRANSLATIONS = chemedit_en.ts \
chemedit_jp.ts
#The following line was inserted by qt3to4
QT +=
To copy to clipboard, switch view to plain text mode
See .h file
#ifndef _ChemHeaderFooterOptions_
#define _ChemHeaderFooterOptions_
#include <q3hbox.h>
#include <q3popupmenu.h>
#include <qpushbutton.h>
#include <q3mainwindow.h>
#include <qstring.h>
#include <qtoolbutton.h>
#include <q3toolbar.h>
#include <qtooltip.h>
#include "chemtree.h"
#include "headerAndFooterFormatter.h"
class ChemHeaderFooterOptions:public Q3ToolBar
{
Q_OBJECT
public:
// Constructor
ChemHeaderFooterOptions(ChemTree::SynViewMode synViewMode, Q3MainWindow *parent = 0, char *name = "",
ChemCanvas *canvas = 0 );
public slots:
void closeFormater();
protected slots:
private:
};
#endif
#ifndef _ChemHeaderFooterOptions_
#define _ChemHeaderFooterOptions_
#include <q3hbox.h>
#include <q3popupmenu.h>
#include <qpushbutton.h>
#include <q3mainwindow.h>
#include <qstring.h>
#include <qtoolbutton.h>
#include <q3toolbar.h>
#include <qtooltip.h>
#include "chemtree.h"
#include "headerAndFooterFormatter.h"
class ChemHeaderFooterOptions:public Q3ToolBar
{
Q_OBJECT
public:
// Constructor
ChemHeaderFooterOptions(ChemTree::SynViewMode synViewMode, Q3MainWindow *parent = 0, char *name = "",
ChemCanvas *canvas = 0 );
public slots:
void closeFormater();
protected slots:
private:
};
#endif
To copy to clipboard, switch view to plain text mode
See the .cpp file below
//constructor. Here is the error [ undefined refernce to vtable ...] points ,
ChemHeaderFooterOptions::ChemHeaderFooterOptions(ChemTree::SynViewMode synViewMode, Q3MainWindow *parent, char *name, ChemCanvas *canvas)
:Q3ToolBar(parent, name)
{
// some normal coding
}
//constructor. Here is the error [ undefined refernce to vtable ...] points ,
ChemHeaderFooterOptions::ChemHeaderFooterOptions(ChemTree::SynViewMode synViewMode, Q3MainWindow *parent, char *name, ChemCanvas *canvas)
:Q3ToolBar(parent, name)
{
// some normal coding
}
To copy to clipboard, switch view to plain text mode
See the Error : that i have received while linking
/root/Desktop/June12porting_to_Qt4/source/headerFooterOptions.cpp:26: undefined reference to `vtable for ChemHeaderFooterOptions'
../source/linuxobj/headerFooterOptions.o(.text+0xba):/root/Desktop/June12porting_to_Qt4/source/headerFooterOptions.cpp:26: undefined reference to `vtable for ChemHeaderFooterOptions'
/root/Desktop/June12porting_to_Qt4/source/headerFooterOptions.cpp:26: undefined reference to `vtable for ChemHeaderFooterOptions'
../source/linuxobj/headerFooterOptions.o(.text+0x18dc):/root/Desktop/June12porting_to_Qt4/source/headerFooterOptions.cpp:26: undefined reference to `vtable for ChemHeaderFooterOptions'
*** Exited with status: 2 ***
/root/Desktop/June12porting_to_Qt4/source/headerFooterOptions.cpp:26: undefined reference to `vtable for ChemHeaderFooterOptions'
../source/linuxobj/headerFooterOptions.o(.text+0xba):/root/Desktop/June12porting_to_Qt4/source/headerFooterOptions.cpp:26: undefined reference to `vtable for ChemHeaderFooterOptions'
/root/Desktop/June12porting_to_Qt4/source/headerFooterOptions.cpp:26: undefined reference to `vtable for ChemHeaderFooterOptions'
../source/linuxobj/headerFooterOptions.o(.text+0x18dc):/root/Desktop/June12porting_to_Qt4/source/headerFooterOptions.cpp:26: undefined reference to `vtable for ChemHeaderFooterOptions'
*** Exited with status: 2 ***
To copy to clipboard, switch view to plain text mode
What i did so far :--
1) . I included the files in .pro files properly
2). cleared the .obj && moc files.
3) then rebuild the porject
After all my attempts i am getting the same error.
Please help me.
Thanks
Bookmarks