From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2906 invoked by alias); 21 Jul 2006 20:00:53 -0000 Received: (qmail 2896 invoked by uid 22791); 21 Jul 2006 20:00:53 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-send.myrealbox.com (HELO smtp-send.myrealbox.com) (151.155.5.143) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Jul 2006 20:00:49 +0000 Received: from tprince [143.183.121.3] by myrealbox.com with NetMail ModWeb Module; Wed, 12 Jul 2006 22:23:27 +0000 Subject: Re: Problem with libg2c From: "Timothy C Prince" To: tangpong@cse.psu.edu CC: gcc-help@gcc.gnu.org, tangpong@cse.psu.edu Date: Fri, 21 Jul 2006 20:00:00 -0000 X-Mailer: NetMail ModWeb Module X-Sender: tprince MIME-Version: 1.0 Message-ID: <1152743007.c7baacdctprince@myrealbox.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2006-07/txt/msg00289.txt.bz2 -----Original Message----- From: Athichart Tangpong To: gcc-help@gcc.gnu.org Date: Wed, 12 Jul 2006 01:12:16 -0400 Subject: Problem with libg2c Dear Sir, I have a problem with libg2c on a newly-installed Fedora Core 5 system.=20 When I compile programs that require libg2c, I have got this error. /usr/bin/ld: cannot find -lg2c collect2: ld returned 1 exit status error: command 'c++' failed with exit status 1 However, when I check, I have found that it exists on the file system. /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libg2c.so /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libg2c.a /usr/lib/libg2c.so.0.0.0 /usr/lib/libg2c.so.0 Does anyone know how to fix this problem? Thank you in advance for your=20 help. _____________________________________________________ You could try a symlink from those libraries into some place on the library= search path of the compiler you are using (for g++, try g++ -print-search-dirs), copy it to your current directory, o= r specify the full path of the library you want. Tim Prince