On Thu, 9 Sep 2004, Vicky Landsman wrote:
> Dear R-list people,
> I asked a similar question a few hours before. I will try to be more
> specific. We like to add the GSL library to the file SHLIB in order to
> make it possible to run the C code using GSL functions from R. We read
Read where? It's incorrect information and only used for Fortran linking.
> that the path to the libgsl.a should be added to the line
shlib_libadd='
> ' in the file SHLIB but it does not work on our system. Dyn.load fails
> with error "referenced symbol <symbolname> not found". What
is wrong?
> We will much appreciate any help on this.
>
> We are using R-1.9.1 on Unix.
You should have a file called Makevars in the directory from which
you are doing the building, defining PKG_LIBS, maybe
PKG_LIBS="-L/path/to/libgsl -lgsl"
in the same way as you would for a package: see `Writing R Extensions'.
I don't think that is documented anywere, though.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595