[R] Fortran (77) in R
Göran Broström
gb at stat.umu.se
Tue Apr 9 11:30:44 CEST 2002
On Tue, 9 Apr 2002, Ko-Kang Kevin Wang wrote:
> On 9 Apr 2002, Peter Dalgaard BSA wrote:
>
> > Date: 09 Apr 2002 10:13:30 +0200
> > From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk>
> > To: Ko-Kang Kevin Wang <kwan022 at stat.auckland.ac.nz>
> > Cc: R Help <r-help at stat.math.ethz.ch>
> > Subject: Re: [R] Fortran (77) in R
> >
> > Ko-Kang Kevin Wang <kwan022 at stat.auckland.ac.nz> writes:
> >
> > > Hi,
> > >
> >
> > It cannot find the entry point "Fibonacci" in your .so file. What is
> > the name of the subroutine you are trying to call? One possible issue
> > is that Fortran is not case sensitive, so it might be "fibonacci",
> > whichever way you spelled it originally. "nm Fibonacci.so" could be
> > enlightening.
>
> I've doubled checked my spelling, my Fortran program looks like:
> c23456789
> SUBROUTINE Fibonacci(num)
> IMPLICIT NONE
> INTEGER num, i, fib, prev1, prev2
> prev1 = 1
> prev2 = 0
> DO 10 i = 0, num
> fib = prev1 + prev2
> prev2 = prev1
> prev1 = fib
> 10 continue
> return
> END SUBROUTINE
[...]
Did you check the case matter Peter mentioned? Besides, your subroutine
doesn't seem to do anything useful...
Göran
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help 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-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
--
Göran Broström tel: +46 90 786 5223
professor fax: +46 90 786 6614
Department of Statistics http://www.stat.umu.se/egna/gb/
Umeå University
SE-90187 Umeå, Sweden e-mail: gb at stat.umu.se
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list