From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27462 invoked by alias); 24 Feb 2003 13:29:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 27440 invoked from network); 24 Feb 2003 13:29:48 -0000 Received: from unknown (HELO mail27.messagelabs.com) (193.109.254.147) by 172.16.49.205 with SMTP; 24 Feb 2003 13:29:48 -0000 X-VirusChecked: Checked X-Env-Sender: Bernhard.Klein@logicacmg.com X-Msg-Ref: server-18.tower-27.messagelabs.com!1046093386!2499 Received: (qmail 7014 invoked from network); 24 Feb 2003 13:29:46 -0000 Received: from porgy.logica.co.uk (158.234.250.67) by server-18.tower-27.messagelabs.com with SMTP; 24 Feb 2003 13:29:46 -0000 Received: from mauchly.logica.co.uk (mauchly.logica.co.uk [158.234.72.16]) by porgy.logica.co.uk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id NAA26601; Mon, 24 Feb 2003 13:29:46 GMT Received: by mauchly.logica.co.uk with Internet Mail Service (5.5.2653.19) id ; Mon, 24 Feb 2003 13:29:44 -0000 Message-ID: <0F232CC93A58D6119C1600B0D0799B810107DFE2@hamsrvmx03.logica.co.uk> From: "Klein, Bernhard" To: "'gcc-help@gcc.gnu.org'" , "'gcc-help-faq@gcc.gnu.org'" Subject: gcc 3.2.2 & STL library Date: Mon, 24 Feb 2003 13:29:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2003-02/txt/msg00228.txt.bz2 Hi All, I'm a newbie in gcc under Solaris 2.9 and try to work with the actual gcc release 3.2.2 and STL.=20 I made a very simple c++ program including some STL functions ( like string, iostream, etc).=20 Compiling like this g++ -o cppstl cppstl.cpp works fine without compiler or linker errors, but after starting the program I got this error: ld.so.1: cppstl: fatal: relocation error: file cppstl: symbol _ZSt4cout: referenced symbol not found Killed mhm, It seems that my binary can'T find a library or something else ( but I don't know which library or what ever needed ). After compiling with: g++ -static -o cppstl cppstl.cpp my little program works fine. I hope that somebody can help me. Bernd Klein=20 ----------------------------------------------------------=20 Logica GmbH=20 Financial Services, GB 21=20 Faulenstra=DFe 31-35=20 28195 Bremen=20 Phone : +49 421 30 96-121=20 Fax : +49 421 30 96-118=20 Email : kleinbe@logica.com=20 ----------------------------------------------------------=20 This e-mail and any attachment is for authorised use by the intended recipi= ent(s) only. It may contain proprietary material, confidential information= and/or be subject to legal privilege. It should not be copied, disclosed = to, retained or used by, any other party. If you are not an intended recip= ient then please promptly delete this e-mail and any attachment and all cop= ies and inform the sender. Thank you.