Linking Rcpp to interp2d (GSL-type library)
问题 I need some help with a linker error I get during installation of an Rcpp package on a linux system where I don't have admin rights. In a nutshell, I get this error: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC I have a file solve.cpp that uses external library interp2d, which in turn has a GSL dependency. I specify my dependencies via [[Rcpp::depends(RcppArmadillo,RcppGSL)]] and in the DESCRIPTION . My Makevars is like the one