From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9532 invoked by alias); 9 Jun 2006 14:34:46 -0000 Received: (qmail 9522 invoked by uid 22791); 9 Jun 2006 14:34:45 -0000 X-Spam-Check-By: sourceware.org Received: from ppsw-9.csi.cam.ac.uk (HELO ppsw-9.csi.cam.ac.uk) (131.111.8.139) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Jun 2006 14:34:40 +0000 Received: from server1.mrc-lmb.cam.ac.uk ([131.111.85.23]:42356) by ppsw-9.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.139]:25) with esmtp id 1Foi4C-0002zB-Vg (Exim 4.54) for gcc-help@gcc.gnu.org (return-path ); Fri, 09 Jun 2006 15:34:29 +0100 Received: from alf1.lmb.internal ([10.1.0.1]) by server1.mrc-lmb.cam.ac.uk with esmtp (Exim 4.10) id 1Foi4A-0003Es-00 for gcc-help@gcc.gnu.org; Fri, 09 Jun 2006 15:34:26 +0100 Date: Fri, 09 Jun 2006 14:34:00 -0000 From: Harry Powell To: gcc-help@gcc.gnu.org Subject: Re: linking problem with gfortran 4.2.0 In-Reply-To: <448971E7.5000108@sbcglobal.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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-06/txt/msg00088.txt.bz2 Hi (thanks to Tim Prince for this) that seems to be it - rebuilding my local link libraries appears to have cured the problem. > You must link against the gfortran 4.2 libraries when you compile with > 4.2. In my limited experience, objects involving run time library calls > don't mix between 4.0, 4.1, and 4.2. > Harry Powell wrote: > > Hi > > > > Note that the _only_ difference in my two builds is the compiler. All > > libraries, flags, etc are identical (so it may just mean that I need to > > add another library - but which one?). > > > > I have been trying to build my code on an Intel iMac - with gfortran 4.0.3 > > compilation & linking goes okay and the executable is usable (though there > > are some unwanted features introduced by small bugs in the compiler, which > > I believe may have been addressed in newer versions). With gfortran 4.2.0 > > I get the following error on linking (in both cases I use the command > > "gfortran" for the linking, but this seems to explicitly invoke odcctools > > in 4.2.0); > > > > /sw/lib/odcctools/bin/ld: Undefined symbols: > > __gfortran_filename > > __gfortran_ioparm > > __gfortran_line > > collect2: ld returned 1 exit status Harry -- Dr Harry Powell, MRC Laboratory of Molecular Biology, MRC Centre, Hills Road, Cambridge, CB2 2QH