Re: [R] I/O fortran instructions and dyn.load

2004-05-26 Thread Gilles GUILLOT
It works with R CMD SHLIB test.f Thanks. Gilles > Try > > R CMD SHLIB test.f > > If SHLIB know it has to deal with Fortran code, it adds the appropriate > libraries. > > On Wed, 26 May 2004, Gilles GUILLOT wrote: > > I have the following Fortran code > > > > subroutine sub(path) > > character*1

Re: [R] I/O fortran instructions and dyn.load

2004-05-26 Thread Prof Brian Ripley
Try R CMD SHLIB test.f If SHLIB know it has to deal with Fortran code, it adds the appropriate libraries. On Wed, 26 May 2004, Gilles GUILLOT wrote: > I have the following Fortran code > > subroutine sub(path) > character*100 path > open(10,file=path) > end > > saved as test.f > > which I c

[R] I/O fortran instructions and dyn.load

2004-05-26 Thread Gilles GUILLOT
I have the following Fortran code subroutine sub(path) character*100 path open(10,file=path) end saved as test.f which I compile with g77 -c test.f then I make the shared libary in R (Version 1.9.0) with system("R CMD SHLIB test.o") so far, everything OK. But dyn.load("test.so") returns the f