[Rcpp-devel] linking Rcpp with external GSL library

Dirk Eddelbuettel edd at debian.org
Mon Jan 13 18:10:30 CET 2014


On 13 January 2014 at 16:53, Florian Oswald wrote:
| Kevin Ushey was right: just had to recompile the external library with -fPIC. 

Yes, linking of a static library built with PIC (position-independent code) works.
 
| Good to know that I could just copy everything into src and avoid such
| issues. 

It's shortcut. It forces rebuilds of all the library files and you have to
make sure you are allowed to distribute the library.  But hey it works (and
some CRAN packages do it, see eg RSQLite).

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list