From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20507 invoked by alias); 8 Jul 2002 15:03:45 -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 20496 invoked from network); 8 Jul 2002 15:03:44 -0000 Received: from unknown (HELO postino.fi.infn.it) (192.84.145.9) by sources.redhat.com with SMTP; 8 Jul 2002 15:03:44 -0000 Received: from pc213-02.inwind.it (pc213-02.fi.infn.it [193.206.190.187]) by postino.fi.infn.it (8.12.4/8.12.4) with ESMTP id g68F39oX066872; Mon, 8 Jul 2002 17:03:13 +0200 (CEST) Message-Id: <5.1.0.14.2.20020708170113.00b4d068@localhost> X-Sender: fwyzard@localhost Date: Mon, 08 Jul 2002 08:03:00 -0000 To: Paul Butcher , gcc-help@gcc.gnu.org From: "Andrea 'Fyre Wyzard' Bocci" Subject: Re: Problem with C++ on gcc 3 In-Reply-To: References: <5.1.0.14.2.20020704123900.00b29448@localhost> <5.1.0.14.2.20020704123900.00b29448@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-RAVMilter-Version: 8.3.1(snapshot 20020109) (postino.fi.infn.it) X-SW-Source: 2002-07/txt/msg00068.txt.bz2 At 09:50 08/07/2002 +0100, Paul Butcher wrote: >Thanks for the obvious answer - my problem was two-fold: >1. using gcc instead of g++ as you stated: -lstdc++ is not included in the >linker stage. >Why does gcc 3.1 not allow this? gcc 2.95.x included the correct libraries >when calling gcc. Didn't know it did that :-) >2. I also had gcc 2.95.3 installed in a different path and libstdc++ was >being found there before the new 3.1 library. >Why does the library path used by gcc not start with its installation >libraries rather than generic paths like /usr/lib? It depends on how you installed GCC: if you installed a precompiled binary from a package, the fault is of the packager; if you bootstrapped from source, the fault is probably GCC's installation procedure's. fwyzard