Are you sure the moc command detected is for the same version of Qt as the includes and the libraries. Check the output of configure. Hopefully (for me since then I've pinned down the problem) you use a "moc" for a different version of Qt than the include files.

/Mauritz
Underscore AB

Bhaskar Karambelkar wrote:
Hi ,
I am trying to compile Tora 1.3.8 Alpha.
I have compiled and installed QT 3.x from source
and installed in my home dir.
Tora compiles all the files.
but during linking it gives "can't resolve ref: errors.

I am attaching the command with which it links and
the output of the linker.
btw I use solaris 8 on sparc. and gnu C compiler.
  

echo Linking tora-mono "/usr/local/gnu/bin/gcc" -g -fPIC -W -Wall "-I/usr/local/tools/oracle/product/8.1.7//rdbms/demo" "-I/usr/local/tools/oracle/product/8.1.7//plsql/public" "-I/usr/local/tools/oracle/product/8.1.7//rdbms/public" "-I/usr/local/tools/oracle/product/8.1.7//network/public" "-I/user/bkarambe/softwares/usr/include" -DOTL_ORA8I -D_REENTRANT -DDEFAULT_PLUGIN_DIR=\"/user/bkarambe/softwares/usr/lib/tora\" "-L/usr/local/tools/oracle/product/8.1.7//lib" "-L/user/bkarambe/softwares/usr/lib" -g -DTOMONOLITHIC -o tora-mono objs/toabout.o objs/toaboutui.o objs/toalert.o objs/toanalyze.o objs/tobackground.o objs/tobackup.o objs/tobarchart.o objs/tobrowser.o objs/tobrowserconstraintui.o objs/tobrowserfilterui.o objs/tobrowserindexui.o objs/tobrowsertableui.o objs/tochangeconnection.o objs/tochartalarmui.o objs/tochartmanager.o objs/tochartsetupui.o objs/toconnection.o objs/tocurrent.o objs/todatabasesettingui.o objs/todebug.o objs/todebugchangeui.o objs/todebugtext.o objs/todebugwatch.o objs/toe ditextensions.o objs/toeditextensionsetupui.o objs/toeditwidget.o objs/toextract.o objs/tofilesize.o objs/toglobalsetting.o objs/toglobalsettingui.o objs/tohelp.o objs/tohelpaddfileui.o objs/tohelpsetupui.o objs/tohighlightedtext.o objs/tohtml.o objs/toinvalid.o objs/tolegendchart.o objs/tolinechart.o objs/tolinechartsetupui.o objs/tomain.o objs/tomarkedtext.o objs/tomemoeditor.o objs/tomessageui.o objs/tonewconnection.o objs/tonewconnectionui.o objs/tonoblockquery.o objs/tooracleconnection.o objs/tooracleextract.o objs/tooraclesettingui.o objs/tooutput.o objs/toparamget.o objs/topassword.o objs/topiechart.o objs/topreferences.o objs/topreferencesui.o objs/toprofiler.o objs/toproject.o objs/toqsqlconnection.o objs/toreport.o objs/toresult.o objs/toresultbar.o objs/toresultcols.o objs/toresultcombo.o objs/toresultconstraint.o objs/toresultcontent.o objs/toresultcontentfilterui.o objs/toresultdepend.o objs/toresultextract.o objs/toresultfield.o objs/toresultindexes.o objs/tores ultitem.o objs/toresultlabel.o objs/toresultline.o objs/toresultlistformatui.o objs/toresultlock.o objs/toresultlong.o objs/toresultparam.o objs/toresultpie.o objs/toresultplan.o objs/toresultreferences.o objs/toresultstats.o objs/toresultstorage.o objs/toresultview.o objs/torollback.o objs/torollbackdialogui.o objs/toscript.o objs/toscriptui.o objs/tosearchreplace.o objs/tosearchreplaceui.o objs/tosecurity.o objs/tosecurityquotaui.o objs/tosecurityroleui.o objs/tosecurityuserui.o objs/tosession.o objs/tosgastatement.o objs/tosgatrace.o objs/tosmtp.o objs/tosql.o objs/tosqledit.o objs/tosqlparse.o objs/tostorage.o objs/tostoragedatafileui.o objs/tostoragedefinition.o objs/tostoragedefinitionui.o objs/tostoragedialogui.o objs/tostorageprefsui.o objs/tostoragetablespaceui.o objs/tosyntaxsetup.o objs/tosyntaxsetupui.o objs/totemplate.o objs/totemplateaddfileui.o objs/totemplateeditui.o objs/totemplateprovider.o objs/totemplatesetupui.o objs/totextview.o objs/tothread.o objs/toto ol.o objs/totoolsettingui.o objs/totuning.o objs/totuningoverviewui.o objs/totuningsettingui.o objs/tovisualize.o objs/towaitevents.o objs/toworksheet.o objs/toworksheetsetupui.o objs/toworksheetstatistic.o objs/utils.o main.cpp \ -lm -lpthread -lcrypt -lposix4 -lstdc++ -lclntsh echo "# Not indended to be used for anything except lupdate" > tora.pro echo 'SOURCES= license/tolicense.cpp\' >> tora.pro echo ' license/tolicenseui.cpp\' >> tora.pro echo ' main.cpp\' >> tora.pro echo ' toextratranslations.cpp\' >> tora.pro echo " toabout.cpp toaboutui.cpp toalert.cpp toanalyze.cpp tobackground.cpp tobackup.cpp tobarchart.cpp tobrowser.cpp tobrowserconstraintui.cpp tobrowserfilterui.cpp tobrowserindexui.cpp tobrowsertableui.cpp tochangeconnection.cpp tochartalarmui.cpp tochartmanager.cpp tochartsetupui.cpp toconnection.cpp tocurrent.cpp todatabasesettingui.cpp todebug.cpp todebugchangeui.cpp todebugtext.cpp todebugwatch.cpp toeditextensions.cpp toeditextensionsetupui.cpp toeditwidget.cpp toextract.cpp tofilesize.cpp toglobalsetting.cpp toglobalsettingui.cpp tohelp.cpp tohelpaddfileui.cpp tohelpsetupui.cpp tohighlightedtext.cpp tohtml.cpp toinvalid.cpp tolegendchart.cpp tolinechart.cpp tolinechartsetupui.cpp tomain.cpp tomarkedtext.cpp tomemoeditor.cpp tomessageui.cpp tonewconnection.cpp tonewconnectionui.cpp tonoblockquery.cpp tooracleconnection.cpp tooracleextract.cpp tooraclesettingui.cpp tooutput.cpp toparamget.cpp topassword.cpp topiechart.cpp topreferences.cpp topreferencesui.cpp toprofiler .cpp toproject.cpp toqsqlconnection.cpp toreport.cpp toresult.cpp toresultbar.cpp toresultcols.cpp toresultcombo.cpp toresultconstraint.cpp toresultcontent.cpp toresultcontentfilterui.cpp toresultdepend.cpp toresultextract.cpp toresultfield.cpp toresultindexes.cpp toresultitem.cpp toresultlabel.cpp toresultline.cpp toresultlistformatui.cpp toresultlock.cpp toresultlong.cpp toresultparam.cpp toresultpie.cpp toresultplan.cpp toresultreferences.cpp toresultstats.cpp toresultstorage.cpp toresultview.cpp torollback.cpp torollbackdialogui.cpp toscript.cpp toscriptui.cpp tosearchreplace.cpp tosearchreplaceui.cpp tosecurity.cpp tosecurityquotaui.cpp tosecurityroleui.cpp tosecurityuserui.cpp tosession.cpp tosgastatement.cpp tosgatrace.cpp tosmtp.cpp tosql.cpp tosqledit.cpp tosqlparse.cpp tostorage.cpp tostoragedatafileui.cpp tostoragedefinition.cpp tostoragedefinitionui.cpp tostoragedialogui.cpp tostorageprefsui.cpp tostoragetablespaceui.cpp tosyntaxsetup.cpp tosyntaxsetupui.cpp totem plate.cpp totemplateaddfileui.cpp totemplateeditui.cpp totemplateprovider.cpp totemplatesetupui.cpp totextview.cpp tothread.cpp totool.cpp totoolsettingui.cpp totuning.cpp totuningoverviewui.cpp totuningsettingui.cpp tovisualize.cpp towaitevents.cpp toworksheet.cpp toworksheetsetupui.cpp toworksheetstatistic.cpp utils.cpp" >> tora.pro echo 'TRANSLATIONS=tora_se.ts tora_fr.ts ' >> tora.pro "/user/bkarambe/softwares/usr/bin/lrelease" tora.pro

Script started on Tue Oct 29 15:43:36 2002 spwsun105 sh tora-1.3.8 [199]> make Linking tora-mono objs/toabout.o: In function `toAbout::tr(char const *, char const *)': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:33: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:33: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:34: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:34: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:34: undefined reference to `QApplication::translate(char const *, char const *, char const *, QApplication::Encoding) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:36: undefined reference to `QString::fromLatin1(char const *, int)' objs/toabout.o: In function `toAbout::trUtf8(char const *, char const *)': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:41: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:41: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:42: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:42: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:42: undefined reference to `QApplication::translate(char const *, char const *, char const *, QApplication::Encoding) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:44: undefined reference to `QString::fromUtf8(char const *, int)' objs/toabout.o: In function `toAbout::staticMetaObject(void)': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:63: undefined reference to `QMetaObject::new_metaobject(char const *, QMetaObject *, QMetaData const *, int, QMetaData const *, int, QMetaProperty const *, int, QMetaEnum const *, int, QClassInfo const *, int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:64: undefined reference to `QMetaObjectCleanUp::setMetaObject(QMetaObject *&)' objs/toabout.o: In function `toAboutUI::tr(char const *, char const *)': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:33: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:33: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:34: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:34: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:34: undefined reference to `QApplication::translate(char const *, char const *, char const *, QApplication::Encoding) const' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:36: undefined reference to `QString::fromLatin1(char const *, int)' objs/toabout.o: In function `toAboutUI::trUtf8(char const *, char const *)': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:41: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:41: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:42: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:42: undefined reference to `qApp' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:42: undefined reference to `QApplication::translate(char const *, char const *, char const *, QApplication::Encoding) const' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:44: undefined reference to `QString::fromUtf8(char const *, int)' objs/toabout.o: In function `toAboutUI::staticMetaObject(void)': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:54: undefined reference to `QDialog::staticMetaObject(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:63: undefined reference to `QMetaObject::new_metaobject(char const *, QMetaObject *, QMetaData const *, int, QMetaData const *, int, QMetaProperty const *, int, QMetaEnum const *, int, QClassInfo const *, int)' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:64: undefined reference to `QMetaObjectCleanUp::setMetaObject(QMetaObject *&)' objs/toabout.o: In function `toAboutUI::qt_cast(char const *)': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:71: undefined reference to `QDialog::qt_cast(char const *)' objs/toabout.o: In function `toAboutUI::qt_invoke(int, QUObject *)': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:76: undefined reference to `QDialog::qt_invoke(int, QUObject *)' objs/toabout.o: In function `toAboutUI::qt_emit(int, QUObject *)': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:81: undefined reference to `QDialog::qt_emit(int, QUObject *)' objs/toabout.o: In function `toAboutUI::qt_property(int, int, QVariant *)': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:87: undefined reference to `QDialog::qt_property(int, int, QVariant *)' objs/toabout.o: In function `toAllocLogo(void)': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:345: undefined reference to `QMimeSourceFactory::defaultFactory(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:345: undefined reference to `QString::fromLatin1(char const *, int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:345: undefined reference to `QPixmap::QPixmap(char const **)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:345: undefined reference to `QPixmap::~QPixmap(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:345: undefined reference to `QPixmap::~QPixmap(void)' objs/toabout.o: In function `toSplash::toSplash(QWidget *, char const *, unsigned int)': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:350: undefined reference to `QVBox::QVBox(QWidget *, char const *, unsigned int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:354: undefined reference to `Qt::white' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:354: undefined reference to `Qt::white' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:354: undefined reference to `QWidget::setBackgroundColor(QColor const &)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:355: undefined reference to `QLabel::QLabel(QWidget *, char const *, unsigned int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:356: undefined reference to `Qt::white' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:356: undefined reference to `Qt::white' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:357: undefined reference to `QPixmap::QPixmap(char const **)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:357: undefined reference to `QPixmap::~QPixmap(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:358: undefined reference to `QVBox::tr(char const *, char const *)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:358: undefined reference to `QLabel::QLabel(QString const &, QWidget *, char const *, unsigned int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:359: undefined reference to `Qt::white' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:359: undefined reference to `Qt::white' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:360: undefined reference to `QProgressBar::QProgressBar(QWidget *, char const *, unsigned int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:362: undefined reference to `QApplication::desktop(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:363: undefined reference to `QWidget::width(void) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:363: undefined reference to `QWidget::width(void) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:363: undefined reference to `QWidget::height(void) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:363: undefined reference to `QWidget::height(void) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:363: undefined reference to `QWidget::move(int, int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:363: undefined reference to `QPixmap::~QPixmap(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:363: undefined reference to `QVBox::~QVBox(void)' objs/toabout.o: In function `toAbout::toAbout(int, QWidget *, char const *, bool, unsigned int)': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:373: undefined reference to `QWidget::setCaption(QString const &)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:374: undefined reference to `QTextEdit::setText(QString const &)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:375: undefined reference to `QBrush::QBrush(QColor const &, Qt::BrushStyle)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:375: undefined reference to `QBrush::~QBrush(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:383: undefined reference to `QWidget::setCaption(QString const &)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:385: undefined reference to `QTextEdit::setText(QString const &)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:386: undefined reference to `QBrush::QBrush(QColor const &, Qt::BrushStyle)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:386: undefined reference to `QBrush::~QBrush(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:392: undefined reference to `QString::fromLatin1(char const *, int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:392: undefined reference to `QString::arg(QString const &, int) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:392: undefined reference to `QWidget::setCaption(QString const &)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:393: undefined reference to `QString::fromLatin1(char const *, int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:393: undefined reference to `QString::arg(QString const &, int) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:394: undefined reference to `QTextEdit::setText(QString const &)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:395: undefined reference to `QBrush::QBrush(QColor const &, Qt::BrushStyle)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:395: undefined reference to `QBrush::~QBrush(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:398: undefined reference to `QBrush::~QBrush(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:398: undefined reference to `QBrush::~QBrush(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.cpp:398: undefined reference to `QBrush::~QBrush(void)' objs/toabout.o: In function `__static_initialization_and_destruction_0': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:28: undefined reference to `QMetaObjectCleanUp::QMetaObjectCleanUp(void)' objs/toabout.o: In function `__static_initialization_and_destruction_0': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:28: undefined reference to `QMetaObjectCleanUp::QMetaObjectCleanUp(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:28: undefined reference to `QMetaObjectCleanUp::~QMetaObjectCleanUp(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:28: undefined reference to `QMetaObjectCleanUp::~QMetaObjectCleanUp(void)' objs/toabout.o: In function `toAboutUI::tr(char const *, char const *)': /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:36: undefined reference to `QDropEvent type_info node' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:36: undefined reference to `QDialog type_info node' /user/bkarambe/softwares/installs/tora-1.3.8/toaboutui.moc:37: undefined reference to `QVBox type_info node' objs/toabout.o: In function `toAbout::className(void) const': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:23: undefined reference to `QString::QString(QString const &)' objs/toabout.o: In function `toAbout::tr(char const *, char const *)': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:33: undefined reference to `operator<(QString const &, QString const &)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:36: undefined reference to `operator<(QString const &, QString const &)' objs/toabout.o: In function `toAbout::className(void) const': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:23: undefined reference to `QCString::~QCString(void)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:23: undefined reference to `QPaintDevice::setResolution(int)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:24: undefined reference to `QPaintDevice::resolution(void) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:24: undefined reference to `QPaintDevice::handle(void) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:24: undefined reference to `QPaintDevice::x11RenderHandle(void) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:25: undefined reference to `QPaintDevice::setX11Data(QPaintDeviceX11Data const *)' objs/toabout.o: In function `toAbout::tr(char const *, char const *)': /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:32: undefined reference to `QPaintDevice::cmd(int, QPainter *, QPDevCmdParam *)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:32: undefined reference to `QWidget::metric(int) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:32: undefined reference to `QPaintDevice::fontMet(QFont *, int, char const *, int) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:32: undefined reference to `QPaintDevice::fontInf(QFont *, int) const' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:32: undefined reference to `QWidget::event(QEvent *)' /user/bkarambe/softwares/installs/tora-1.3.8/toabout.moc:32: undefined reference to `QDialog::eventFilter(QObject *, QEvent *)'