From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22836 invoked by alias); 13 Jul 2006 01:24:54 -0000 Received: (qmail 22827 invoked by uid 22791); 13 Jul 2006 01:24:53 -0000 X-Spam-Check-By: sourceware.org Received: from smtp103.sbc.mail.mud.yahoo.com (HELO smtp103.sbc.mail.mud.yahoo.com) (68.142.198.202) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 13 Jul 2006 01:24:48 +0000 Received: (qmail 41279 invoked from network); 13 Jul 2006 01:24:46 -0000 Received: from unknown (HELO ?68.125.129.157?) (timothyprince@sbcglobal.net@68.125.129.157 with plain) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 13 Jul 2006 01:24:46 -0000 Message-ID: <44B5A0DA.8030007@sbcglobal.net> Date: Thu, 13 Jul 2006 01:24:00 -0000 From: Tim Prince Reply-To: tprince@myrealbox.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Athichart Tangpong CC: gcc-help@gcc.gnu.org Subject: Re: Problem with libg2c References: <44B484B0.2020608@cse.psu.edu> In-Reply-To: <44B484B0.2020608@cse.psu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00157.txt.bz2 Athichart Tangpong wrote: > Dear Sir, > > I have a problem with libg2c on a newly-installed Fedora Core 5 system. > 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 > help. > I'm sure someone has attempted to post a reply, as I've done myself. I guess you didn't try obvious possibilities, like replacing -lg2c with the entire path of the library you desire, as you didn't say what errors came about. If you cared, evidently g++ -print-search-dirs would show you which directories are searched for libraries.