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: Bud Davis <bdavis9659 at sbcglobal dot net>
- To: victor marian <vctrmarian at yahoo dot com>, gcc-help at gcc dot gnu dot org
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 31 Jul 2006 13:31:57 -0700 (PDT)
- Subject: Re: Mixing Fortran 77 and Fortran 90 code
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=0Z/VmqGWJUIlwonjYB39mNZGkZeaMEPi2XGw05cCXberWCx8WkoatiiGV+2AbVCH3KbETFeI2DwDrhWTdoUTJknUpiLySSmkAtZPEAxRfzxzfLvE12qKPu6eAGwgJZXOFDEogu12Ab3qtoG4tNq4yk08GD6xN/B55BL4whda5kE= ;
hi victor,
it is best if you can show the exact errors you are
getting.
does it not link or are the results of the program
execution not what you expect ?
regards,
bud davis
--- victor marian <vctrmarian@yahoo.com> wrote:
> Sorry,
>
> I found -fg77-calls on the web but it is for g95 not
> gfortran.
> I recompiled splib (Fortran77 code) with gfortran.
>
> but when I write
> gfortran -o fileexe file.f splib.a
> it still does not work. Do I need an extra option?
> What about -f2c? What does it mean?
>
>
> --- Steve Kargl <sgk@troutmask.apl.washington.edu>
> wrote:
>
> > 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
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>