From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21490 invoked by alias); 8 Jun 2011 22:14:09 -0000 Received: (qmail 21482 invoked by uid 22791); 8 Jun 2011 22:14:08 -0000 X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,TW_IB,TW_LG,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jun 2011 22:13:55 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QUR0b-0003y4-KG for gcc-help@gcc.gnu.org; Wed, 08 Jun 2011 15:13:54 -0700 Message-ID: <31804950.post@talk.nabble.com> Date: Thu, 09 Jun 2011 04:52:00 -0000 From: Syed Bilal Mehdi To: gcc-help@gcc.gnu.org Subject: Re: undefined reference to libquadmath routines In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <31790381.post@talk.nabble.com> <31794507.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00201.txt.bz2 libgfortran was installed with gcc 4.6, I just needed to add the path to LD_LIBRARY_PATH. Thanks Jonathan Wakely-4 wrote: >=20 > On 7 June 2011 19:40, Syed Bilal Mehdi wrote: >> >> And when I do add =C2=A0-lgfortran as external library, the build goes >> successful >> but I get the following error during runtime >> >> ./test: error while loading shared libraries: libgfortran.so.3: cannot >> open >> shared object file: No such file or directory >=20 > See http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths > and the page it links to. >=20 > That is talking about the C++ runtime library but the same rules apply > to the other GCC runtime libraries. >=20 >> Is it a bug again? or am I missing something this time? and why is >> fortran >> important here? >=20 > I think libquadmath was added for gfortran and I assume it has a > dependency on it. >=20 >=20 --=20 View this message in context: http://old.nabble.com/undefined-reference-to-= libquadmath-routines-tp31790381p31804950.html Sent from the gcc - Help mailing list archive at Nabble.com.