From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8755 invoked by alias); 9 Jun 2006 13:04:53 -0000 Received: (qmail 8725 invoked by uid 22791); 9 Jun 2006 13:04:48 -0000 X-Spam-Check-By: sourceware.org Received: from smtp114.sbc.mail.mud.yahoo.com (HELO smtp114.sbc.mail.mud.yahoo.com) (68.142.198.213) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 09 Jun 2006 13:04:43 +0000 Received: (qmail 18258 invoked from network); 9 Jun 2006 13:04:41 -0000 Received: from unknown (HELO ?68.125.161.25?) (timothyprince@sbcglobal.net@68.125.161.25 with plain) by smtp114.sbc.mail.mud.yahoo.com with SMTP; 9 Jun 2006 13:04:40 -0000 Message-ID: <448971E7.5000108@sbcglobal.net> Date: Fri, 09 Jun 2006 13:04:00 -0000 From: Tim Prince Reply-To: tprince@myrealbox.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Harry Powell CC: gcc-help@gcc.gnu.org Subject: Re: linking problem with gfortran 4.2.0 References: In-Reply-To: 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-06/txt/msg00087.txt.bz2 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 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.