GUILLOT [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 15, 2005 11:50 AM
To: [EMAIL PROTECTED]
Cc: Huntsinger, Reid
Subject: Re: [Rd] Calling C from Fortran
Thanks for your reply.
Am I write if I say that the wrapper shoul be
double F77_SUB(mygammafn)(double *x) { return gammafn(*x); }
ins
at
> Fortran <-> C conventions.
>
> Reid Huntsinger
>
> -Original Message-
> From: Gilles GUILLOT [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 15, 2005 3:50 AM
> To: Huntsinger, Reid
> Subject: Re: [Rd] Calling C from Fortran
>
>
> Thanks Reid!
>
need examples, eg.
src/library/stats.
Reid Huntsinger
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Gilles GUILLOT
Sent: Tuesday, June 14, 2005 1:05 PM
To: R-devel@stat.math.ethz.ch
Subject: [Rd] Calling C from Fortran
I would like to call C rout
I would like to call C routines from Fortran under linux as suggested in
section 5.6 of
the "Writing R extensions" documentation.
I'm familiar with Fortran but not with C.
I understand the example provided in Fortran:
subroutine testit()
double precision normrnd, x
call rndstart()
x = normrnd()