[Uml-user] compiler problem with QT version 2.3.1
Toon Knapen
toon.knapen at si-lab.org
Wed Jan 2 05:35:03 UTC 2002
looking into detail in the config.log (there's no configure.out), it
seems that the small test can't be linked. However, I do succeed to
manually compile the small test that is reported to fail using the same
command-line (except for the 1>&5 at the end) : I don't understand at all ??
configure:5302: checking for Qt
configure: 5364: /usr/lib/qt2/include/qstyle.h
taking that
tried NO
configure:5463: rm -rf SunWS_cache; c++ -o conftest -O2 -fno-exceptions
-fno-check-new -I/usr/lib/qt2/include -I/usr/X11R6/include
-L/usr/lib/qt2/lib -L/usr/X11R6/lib conftest.C -lqt -lpng -lz -lm
-ljpeg -lXext -lX11 -lSM -lICE -lresolv 1>&5
/home/tk/tmp/cc8Ks36a.o: In function `main':
/home/tk/tmp/cc8Ks36a.o(.text+0x3e): undefined reference to
`QString::shared_null'
/home/tk/tmp/cc8Ks36a.o(.text+0x71): undefined reference to
`QIconView::QIconView(QWidget*, char const*, unsigned)'
/home/tk/tmp/cc8Ks36a.o(.text+0x81): undefined reference to
`QIconView::setWordWrapIconText(bool)'
/home/tk/tmp/cc8Ks36a.o(.text+0x86): undefined reference to
`QString::shared_null'
/home/tk/tmp/cc8Ks36a.o(.text+0xa5): undefined reference to
`QString::setLatin1(char const*, int)'
/home/tk/tmp/cc8Ks36a.o(.text+0xba): undefined reference to
`QString::shared_null'
/home/tk/tmp/cc8Ks36a.o(.text+0xc5): undefined reference to
`QStringData::deleteSelf()'
/home/tk/tmp/cc8Ks36a.o(.text+0xd7): undefined reference to
`QIconView::~QIconView()'
/home/tk/tmp/cc8Ks36a.o(.text+0xeb): undefined reference to
`QString::shared_null'
/home/tk/tmp/cc8Ks36a.o(.text+0xf2): undefined reference to
`QString::makeSharedNull()'
/home/tk/tmp/cc8Ks36a.o(.text+0xf9): undefined reference to
`QString::makeSharedNull()'
collect2: ld returned 1 exit status
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qevent.h>
#include <qstring.h>
#include <qstyle.h>
#include <qiconview.h>
#if ! (QT_VERSION >= 222)
#error 1
#endif
int main() {
QStringList *t = new QStringList();
QIconView iv(0);
iv.setWordWrapIconText(false);
QString s;
s.setLatin1("Elvis is alive", 14);
int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
return 0;
}
More information about the umbrello
mailing list