From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 03:58:14 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B1BD16A4C0 for ; Wed, 20 Aug 2003 03:58:14 -0700 (PDT) Received: from spam1.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 91B4443FB1 for ; Wed, 20 Aug 2003 03:58:12 -0700 (PDT) (envelope-from lahaye@snu.ac.kr) Received: (snipe 26502 invoked by alias); 20 Aug 2003 11:19:48 -0000 Received: from lahaye@snu.ac.kr with Spamsniper2.0 (Processed in 0.013635 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 20 Aug 2003 11:19:48 -0000 X-RCPTTO: freebsd-questions@freebsd.org, Received: from snu.ac.kr ([147.46.44.183]) by sis1.snu.ac.kr (8.12.9/8.12.9) with ESMTP id h7KAvj6d162968 for ; Wed, 20 Aug 2003 19:57:46 +0900 Message-ID: <3F435444.3040508@snu.ac.kr> Date: Wed, 20 Aug 2003 19:58:12 +0900 From: Rob Lahaye Organization: Seoul National University - South Korea User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030726 X-Accept-Language: en-us, ko-kr MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: g++ vs. g++33: conflicts with qt 3.1.2 on FreeBSD 4.8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 10:58:14 -0000 Hi, FreeBSD 4.8 and Qt 3.1.2 compiled "as is" from the portscollection. I have a brief Qt code: #include #include int main () { QString s("mangle_failure"); return 0; } I compile this as follows: ${CC} MyQtCode.C -g -O -pthread -I/usr/X11R6/include -L/usr/X11R6/lib -I/usr/local/include -L/usr/local/lib \ -lSM -lICE -lc -lm -lX11 -lqt-mt Where CC is either "/usr/bin/g++" or "/usr/local/bin/g++33" With g++ this compiles fine. But with g++33, I get an error, that says: /var/tmp//ccI2rls3.o: In function `main': /home/lahaye/MyQtCode.C:6: undefined reference to `QString::QString[in-charge](char const*)' /var/tmp//ccI2rls3.o: In function `main': /usr/X11R6/include/qstring.h:770: undefined reference to `QString::shared_null' /usr/X11R6/include/qstring.h:771: undefined reference to `QStringData::deleteSelf()' collect2: ld returned 1 exit status Any idea how I can fix this? Thanks, Rob.