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

From: <pleydell_at_supagro.inra.fr>
Date: Fri, 22 Jan 2010 18:37:58 +0100

> 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 job, great!!

I was copying QRMlib and not the gsl package since the former includes .h files
while the later uses .c files. I have a binary and not source installation of gsl (not the R package) and so .h files were more readily accessible to me. I wonder about the pros / cons of using .c vs. .h in an R package and how QRMlib was compiled without the above line in Makevars.

Thanks for your help
David



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 22 Jan 2010 - 17:41:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 22 Jan 2010 - 17:50:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive