This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mixing Fortran 77 and Fortran 90 code


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 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]