Results 1 to 5 of 5

Thread: Compilation Error

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    3

    Unhappy Compilation Error

    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

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    183
    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.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    3
    Recompiled Qt 2.3.2 with Gcc v3 ... same error

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    183
    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.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    3
    Thanks a lot !
    All seems to work fine now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On