Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com content-class: urn:content-classes:message Subject: How to make g++ link with QT (a microsoft compatible library) on x86 Date: Mon, 21 Jan 2002 10:56:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-ID: <94A671CDB200AA49ADCC85C7FE10ED4D67FE28@hermes.super.dk> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to make g++ link with QT (a microsoft compatible library) on x86 Thread-Index: AcGiYeRUZG14Xe6BQSy0Tp+oaAz8Ug== From: "Torben Neesgaard" To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g0L9urc06382 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/