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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel