Fortran vs C, easing using Fortran

Prof Brian D Ripley ripley@stats.ox.ac.uk
Mon, 12 Apr 1999 07:35:01 +0100 (BST)


On Mon, 12 Apr 1999, Kurt Hornik wrote:

> >>>>> Prof Brian D Ripley writes:
> > I think in R we can do better than at present, if only I knew exactly
> > how. One idea is to have (effectively) a `hints' file that configure
> > uses to add a base set of libraries to FLIBS, but on Solaris at least,
> > using the Fortran command (f77 or g77) to link a dynamic library does
> > the job.  For linking with ld the base FLIBS would need to be
> 
> > -lF77 -lM77 -lV77 -lsunmath -lm
> 
> > _if_ f77 is used.  How viable is `use FC to link' on other platforms?
> 
> Are you suggesting using the Fortran compiler as SHLIBLD?

Yes, at least on platforms where this is known to be safe.

> Please help me understanding this a bit more.  The above `-lF77 ...'
> would be the default FLIBS to use when compiling/linking Fortran?

On Solaris.

> Short term fix should be to use platform-specific overrides in basic
> configure.  Another idea is to have configure scripts supported for add
> ons.
> 
> (If I fully understood the problem, I think I could fix it ...)

Yes!


-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._