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


On Mon, Jul 31, 2006 at 10:39:12AM -0700, victor marian wrote:
> 
> 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?
> 

Is splib.a in the same directory as file.f?

If splib.a is compiled with gfortran, you don't
need the -ff2c option.  This option changes the
library calling interface to use the old interface
implemented in f2c, which was carried over to g77.

-- 
Steve


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