[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Compile problems with Qt-3.2.1
From:       David Faure <dfaure () trolltech ! com>
Date:       2003-09-24 18:37:34
[Download RAW message or body]

On Tuesday 23 September 2003 07:52, James Richard Tyrer wrote:
> I have upgraded to Qt-3.2.1 and now I consistently get errors such as this:
> 
> undefined reference to `QString::setNum(long long, int)
> 
> Specifically, one instance:
> 
> make[4]: Entering directory `/home/CVS/koffice/lib/store'
> /bin/sh ../../libtool --silent --mode=link --tag=CXX /usr/local/bin/g++ 
> -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith 
> -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
> -Wconversion -Wchar-subscripts -O2 -march=k6-3 -mcpu=k6-3 -O2 
> -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new 
> -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL 
> -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libkstore.la -rpath /usr/kde3/lib 
> -L/usr/X11R6/lib -L/usr/local/qt-3.2.1/lib -L/usr/kde3/lib  -version-info 
> 2:0:0 -L/usr/kde3/lib -no-undefined -Wl,--no-undefined 
> -Wl,--allow-shlib-undefined koStore.lo koTarStore.lo koDirectoryStore.lo 
> koZipStore.lo koStoreDrag.lo -lkio .libs/koStore.o: In function 
> `KoStore::createStore(QString const&, KoStore::Mode, QCString const&, 
> KoStore::Backend)':
> .libs/koStore.o(.text+0x10e): undefined reference to `QString::setNum(long 
> long, int)'
That's in Qt-3.2.1 but not in earlier versions of Qt. So it sounds like it's finding the
wrong version of Qt.
I suggest to add  -Q -v -Wl,-t  to the link line, to see which lib it's picking up.

-- 
David FAURE, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic