This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
How to make g++ link with QT (a microsoft compatible library) on x86
- From: "Torben Neesgaard" <torben at superusers dot dk>
- To: <cygwin at cygwin dot com>
- Date: Mon, 21 Jan 2002 10:56:27 +0100
- Subject: How to make g++ link with QT (a microsoft compatible library) on x86
Hi
Is there a g++ switch for linking with foreign libraries?
Under Windows 2000, using g++, I am trying to link with QT,
which is released only for Microsoft Visual C++.
I get the error-messages shown below. Supposing this caused by
incompatibilities between g++ and Visual C I am searching for
a switch or something to cope with it. Is g++ that clever?
Please don't tell me to recompile g++ with Visual C++...
Thank you for any answer!!!
Regards
Torben
The error messages:
H:\QT01>g++ -L%QTDIR%\lib -I%QTDIR%\include qt01.cpp
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x3d):qt01.cp
p: undefined reference to `QApplication::QApplication(int &, char **)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x54):qt01.cp
p: undefined reference to `QApplication::~QApplication(void)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x73):qt01.cp
p: undefined reference to `QString::QString(char const *)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0xbd):qt01.cp
p: undefined reference to `QPushButton::QPushButton(QString const &,
QWidget *, char const *)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0xfc):qt01.cp
p: undefined reference to `QPushButton::~QPushButton(void)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x123):qt01.c
pp: undefined reference to `QPushButton::resize(int, int)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x139):qt01.c
pp: undefined reference to `QApplication::setMainWidget(QWidget *)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x14b):qt01.c
pp: undefined reference to `QWidget::show(void)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x15a):qt01.c
pp: undefined reference to `QApplication::exec(void)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x17e):qt01.c
pp: undefined reference to `QPushButton::~QPushButton(void)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text+0x19d):qt01.c
pp: undefined reference to `QApplication::~QApplication(void)'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text$_$_7QString+0
x26):qt01.cpp: undefined reference to `QString::shared_null'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text$_$_7QString+0
x2e):qt01.cpp: undefined reference to `QString::shared_null'
/cygdrive/c/DOCUME~1/torben/LOCALS~1/Temp/ccE2a4Xq.o(.text$_$_7QString+0
x3d):qt01.cpp: undefined reference to `QStringData::deleteSelf(void)'
collect2: ld returned 1 exit status
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/