PDA

View Full Version : Compilation Error



Ulath
01-11-2002, 12:41 AM
Configure script is errorless ... but i get bad compilations errors, and i cannot found a workable solution ...

Here are the last lines on compile :

/home/goth/showeq/src/gdbmconv.cpp:310: undefined reference to `QString::QString(QString const&)'
gdbmconv.o: In function `GDBMIterator::GetFirstKey(QString, Datum&)':
/usr/local/qt/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt/include/qstring.h:651: undefined reference to `QString::shared_null'
/usr/local/qt/include/qstring.h:651: undefined reference to `QString::shared_null'
/usr/local/qt/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt/include/qstring.h:651: undefined reference to `QString::shared_null'
/usr/local/qt/include/qstring.h:651: undefined reference to `QString::shared_null'
collect2: ld returned 1 exit status
make[2]: *** [showeq] Error 1
make[2]: Leaving directory `/home/goth/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/goth/showeq'
make: *** [all-recursive-am] Error 2
powah:/home/goth/showeq#

If you have any ideas or solutions ... Thanks in advance

Yendor
01-11-2002, 12:46 AM
First guess is you don't have a version of Qt 2.3.2 built with a gcc v3 compiler. Configure won't catch that yet.

Ulath
01-11-2002, 09:45 PM
Recompiled Qt 2.3.2 with Gcc v3 ... same error :mad:

Yendor
01-11-2002, 10:54 PM
Make sure configure is finding the qt you compiled. Best way is to run configure with this option:

--with-qt-dir=/opt/qtgcc3-2.3.2

(obviously substitute the path to where you built qt).

configure will often still find the system version of qt rather than the version you build with gcc3.

Ulath
01-12-2002, 09:57 PM
Thanks a lot !
All seems to work fine now.