[Rd] R CMD check error with the GNU Scientific Library

2010-01-22 Thread pleydell
I have been working on an R package that calls C code using .C(). I recently started including some functions from the GNU Scientific Library in my code. The code runs fine on my machine when not wrapped in the package. But I get the following error from R CMD check * checking whether the package

Re: [Rd] R CMD check error with the GNU Scientific Library

2010-01-22 Thread Uwe Ligges
Maybe you want to check out the R package gsl and take a look how it is solved there using a configure script that looks up the gsl installation. Best wishes, Uwe On 22.01.2010 10:59, pleyd...@supagro.inra.fr wrote: I have been working on an R package that calls C code using .C(). I recently

Re: [Rd] R CMD check error with the GNU Scientific Library

2010-01-22 Thread Romain Francois
Hi, You'll need something like : PKG_LIBS=-lgsl -lgslcblas in your Makevars. This is from package gsl (on CRAN). Or maybe you can just depend on the gsl package and let it worry about finding where gsl is, etc ... Romain On 01/22/2010 10:59 AM, pleyd...@supagro.inra.fr wrote: I have

Re: [Rd] R CMD check error with the GNU Scientific Library

2010-01-22 Thread pleydell
You'll need something like : PKG_LIBS=-lgsl -lgslcblas in your Makevars. This is from package gsl (on CRAN). Of course! That makes sense 'cause I was already compiling using MAKEFLAGS=CFLAGS=-g -O0 R CMD SHLIB sharka.c -lgsl -lgslcblas and including the above line in Makevars has done the