Dear Prof. Ripley, We read the archive thread http://maths.newcastle.edu.au/~rking/R/help/02b/0547.html Thank you for your help, we will try to create the Makevars file. Vicky.
----- Original Message ----- From: "Prof Brian Ripley" <[EMAIL PROTECTED]> To: "Vicky Landsman" <[EMAIL PROTECTED]> Cc: "r-help" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 09, 2004 3:17 PM Subject: Re: [R] Adding GSL library path to SHLIB > 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, [EMAIL PROTECTED] > 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 > > ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
