[Comm] компиляция программы

Someone Unknown =?iso-8859-1?q?someone=5Flists_=CE=C1_bk=2Eru?=
Вт Дек 17 14:40:39 MSK 2002


> Хочу вернуться к данному обсуждению, т.к. сам попал в такую ситуацию.
>
> Вот что выдаёт configure
>
> configure:21297: checking for Qt
> configure: 21364: /usr/lib/qt3/include/qstyle.h
> taking that
> configure:21474: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor
> -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith
> -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new
> -I/usr/lib/qt3/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT 
> -D_REENTRANT  -L/usr/lib/qt3/lib -L/usr/X11R6/lib   conftest.cc  -lqt-mt
> -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lresolv -lpthread 1>&5
> /tmp/ccDUTyIB.o: In function `main':
> /tmp/ccDUTyIB.o(.text+0x8): undefined reference to `QString::null'
> /tmp/ccDUTyIB.o(.text+0xd): undefined reference to
> `QStyleFactory::create(QString const &)' /tmp/ccDUTyIB.o(.text+0x1a):
> undefined reference to `QCursor::QCursor(int)' /tmp/ccDUTyIB.o(.text+0x24):
> undefined reference to `QCursor::~QCursor(void)' collect2: ld returned 1
> exit status
> configure:21477: $? = 1
> configure: failed program was:
> #include "confdefs.h"
> #include <qglobal.h>
> #include <qapplication.h>
> #include <qcursor.h>
> #include <qstylefactory.h>
> #include <private/qucomextra_p.h>
> #if ! (QT_VERSION >= 303)
> #error 1
> #endif
>
> int main() {
>     (void)QStyleFactory::create(QString::null);
>     QCursor c(Qt::WhatsThisCursor);
>     return 0;
> }
> configure:21517: error: Qt (>= Qt 3.0.3) (library qt-mt) not found. Please
> check your installation! For more details about this problem, look at the
> end of config.log. Make sure that you have compiled Qt with thread support!
>
>
>
> Что делать???

Попробовать скомпилять с использованием gcc3.2

>
> Евгений.
> _______________________________________________
> Community mailing list
> Community на altlinux.ru
> http://www.altlinux.ru/mailman/listinfo/community




Подробная информация о списке рассылки community