This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: g77-gfortran
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Granville Sewell" <sewell at math dot utep dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 24 Aug 2007 11:31:12 +0100
- Subject: Re: g77-gfortran
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uq9S/zWFhitDzSdziSOXzzmMEDVR5YdEPoMpXwwoWRo8ubbwh5apecYlb/A6caKcan7qjNGkQsNubgd7TZvbXWXWvyxxvqHwPFu/y4ueio6ujnLI6YoQzwDDKJW8xXm1NaXggivCzNGQKAtnWMghCu/xuhMF4e6Ew0HcJ+sHLl0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L+4kHB9a4+PRDMPiP+cJf2zkODXeqt2/bNaCZQolA04GExtiY5Q1FIh+LM/BkiQCONpfQDjyC7Cn3/ZXLqi8hjBznxwK/v1qN4zbhSQ/fBDSEU7DaROAGtp+fmMkL024r4qnXDyg7M/FxacSR3bgw4y3pGFOpxG7pDxKkOPDf1E=
- References: <200708241017.l7OAHtUQ028238@banach.math.utep.edu>
> I was told that "gfortran -ff2c"
> would generate compatible object code
Yes...
> but someone tried compiling their
> main program on a Linux (Fedora core 6) PC using "gfortran -ff2c" and
> when they linked to my g77-compiled library they got the unresolved
> externals below.
... but it does not provided the runtime library g77 object files
(i.e. your library) rely on. You need to link with the libg2c that
came with the compiler used to compile the library. And it will not
work if you have I/O to the same I/O unit from both the library and
the user code (it will usually work OK, though, for standard input and
output).
FX