[R-SIG-Mac]compiling fortran code of contributed packages using absoft f77 and lnk

Peter Macdonald pdmmac@mcmail.cis.mcmaster.ca
Mon, 28 May 2001 11:37:44 -0400 (EDT)


I ran into this same problem using the Absoft windows compiler. Absoft
Tech Support and Brian Ripley were both very helpful. After you make sure
that you are consistent with upper and lower case, and with the trailing
underscore, use .C and not .Fortran. Here was Brian's solution:

~~~~~~~

Date: Tue, 2 May 2000 07:05:15 +0100 (BST)
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
To: Peter Macdonald <pdmmac@mcmail.cis.mcmaster.ca>
Subject: Re: dll's for R (fwd)

On Mon, 1 May 2000, Peter Macdonald wrote:

> It looks as though is.loaded() recognizes the symbol but .Fortran()
> doesn't. The symbol name agrees with the name found by pedump.

Use .C for `Foreign' compilers.  That does no mapping.  I thought I
suggested that yesterday (and I did put it in readme.packages yesterday).

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
 Peter D.M. Macdonald, D.Phil.      McMaster University
 Professor of Math & Statistics     Hamilton, Ontario, Canada L8S 4K1
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*


On Mon, 28 May 2001, Stefano Iacus wrote:

> 
> 
> 
> > Now my question is: how can I control that lnk creates a shared library 
> > consisting of FORTRAN routines. Does anybody have a hint?
> >
> 
> I suspect that the absoft compiler do not user "underlines" in the 
> function names. R for MacOS actually add a "_" symbol to fortran 
> functions. This is because Mac f2c uses this convention.
> 
> Can you please try to do this witht he absoft compiler ? I do not own 
> this compiler but it would be very important to understand what is going 
> on.
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@stat.math.ethz.ch
> http://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
> 
>