Skip to content
Back to formatted view

Raw Message

Message-ID: <142A1603-7E6F-4309-9ADA-377200D127BD@unsw.edu.au>
Date: 2005-08-14T23:55:59Z
From: Bill Northcott
Subject: Including Fortran subrutines in a package
In-Reply-To: <mailman.9.1124013600.13283.r-help@stat.math.ethz.ch>

On 14/08/2005, at 8:00 PM, r-help-request at stat.math.ethz.ch wrote:
> I am creating a packege and I would like to inclued some Fortrun  
> subrutines.
> I have two questions.
> 1. Can I use "free form fortan" - compiles well usinf g77 -ffree-form.
> 2. Is it enough to place the ".for" files in scr folder?

gcc Fortran is in the process of moving from g77 which goes with  
gcc-3.x to gfortran which goes with gcc-4.x.

AFAIK -ffree-form is the default for g77 but not for gfortran if the  
source file has the .f .for extensions.  Free form is the default  
for .f90 .f95 extensions.  So maybe
1. include the -ffree-form option so that thing will not break with  
gfortran.
2. don't assume the gcc Fortran compiler is g77.

Bill Northcott