This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Mixing Fortran 77 and Fortran 90 code
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: victor marian <vctrmarian at yahoo dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 31 Jul 2006 09:31:25 -0700
- Subject: Re: Mixing Fortran 77 and Fortran 90 code
- References: <20060731155229.46393.qmail@web55805.mail.re3.yahoo.com>
On Mon, Jul 31, 2006 at 08:52:29AM -0700, victor marian wrote:
>
> I want to build a program called spherical.o (Fortran
> 90 code) compiled with gfortran with a library splib.a
> (Fortran 77 code) compiled with g77
> I give the command
>
> gfortran -o sphericalexe spherical.o -gf77-calls
> splib.a
>
> but it gives me o lot of errors as if the option
> -gf77-calls were not recognised.
> What could be the problem? Please Help.
I suppose the problem is that there is no -gf77-calls
option. Of course, if you read the gfortran manual
you would know this.
The easiest thing to do is recompile splib.a with
gfortran.
--
Steve