Re: [Rd] Error in .Fortran Call

2011-05-04 Thread vioravis
Thanks a lot. I will try the recommended changes. Ravi -- View this message in context: http://r.789695.n4.nabble.com/Error-in-Fortran-Call-tp3495319p3495777.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org maili

Re: [Rd] Error in .Fortran Call

2011-05-04 Thread Simone Giannerini
add IMPLICIT NONE DOUBLE PRECISION X(N),XMEAN INTEGER N,J to your subroutine. Ciao Simone P.S. It is best to include IMPLICIT NONE in all of your subroutines and to avoid underscores in subroutines' names. On Wed, May 4, 2011 at 2:26 PM, vioravis wrote: > I have the following FORTRAN code

Re: [Rd] Error in .Fortran Call

2011-05-04 Thread Duncan Murdoch
On 04/05/2011 8:26 AM, vioravis wrote: I have the following FORTRAN code converted to a DLL: ! my_xmean.f90 ! ! FUNCTIONS/SUBROUTINES exported from my_function.dll: ! my_function - subroutine ! subroutine my_xmean(X,N,XMEAN) ! Expose subroutine my_function to users of this DLL ! !DEC$ ATTRIBUTE