search for: rgsltest

Displaying 2 results from an estimated 2 matches for "rgsltest".

2006 Dec 12
1
Undefined symbol when trying to dyn.load a shared object
...e is: #include </usr/include/gsl/gsl_sf_hyperg.h> void gslTestHG (double *a, double *b, double *c, double *x, double *val ) { *val = gsl_sf_hyperg_2F1(*a,*b,*c,*x); } I compile this code (successfully) using R CMD SHLIB gslTest.c and get the following result -bash-3.00$ R CMD SHLIB RgslTest.c gcc -I/usr/lib64/R/include -I/usr/lib64/R/include -I/usr/local/include -fpic -O2 -g -c RgslTest.c -o RgslTest.o gcc -shared -L/usr/local/lib64 -o RgslTest.so RgslTest.o -L/usr/lib64/R/lib -lR Next, I try to load the shared object into R using dyn.load("RgslTest.so") and get the...
2006 Dec 12
1
include libraries for C code called from R
...e *x, double *val ) { *val = gsl_sf_hyperg_2F1(*a,*b,*c,*x); } I then compile this file (successfully, on a Linux machine with gcc installed) using R CMD SHLIB gslTest.c. The message from the complier is: gcc -I/usr/lib64/R/include -I/usr/lib64/R/include -I/usr/local/include -fpic -O2 -g -c RgslTest.c -o RgslTest.o gcc -shared -L/usr/local/lib64 -o RgslTest.so RgslTest.o -L/usr/lib64/R/lib -lR When I go into R and enter the command dyn.load("gslTestHG.so"), I get the following error: Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/mnt...