Hello! 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? Thank you in advance for any help! Ales Ziberna P.S.: I am runing R 2.1.1 on Win XP, SP2. I installed rtools, mingw, perl as suggested in the manuals. Here are some detailsabour R: platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 1.1 year 2005 month 06 day 20 language R
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