[R] Creating shared libraries for dyn.load() in R
pbouman at sachs.com
Sat Jul 10 23:20:07 CEST 1999
I am working to install Chong Gu's new gss library on my Linux system
(Redhat 5.1/i386), and have run into the following roadblock: Dr. Gu's R
code is a front end for a package of Fortran routines called RKPACK. While
I have no trouble compiling
the individual bits of Fortran code with fort77 in Linux, I don't know how
to link the resulting *.o files into a shared library that R
will read with dyn.load() (I am following the procedure recommended by V&R
in their R Complements to MASS).
I suspect, of course, that the problem is that I don't really understand how
to use ld to produce the shared libraries correctly. Could anyone indulge a
newbie and offer some advice? Even a pointer to documentation on how to
build shared libraries would be great.
(Alternatively: Dr. Gu's Makefile for GKPACK uses "ranlib" to put the
object code into a *.a file. Can R be persuaded to use this kind of file?)
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