On 17 February 2019 at 19:20, Morgan Morgan wrote: | So I tried to create a github repo : https://github.com/2005m/RLibTorrent | | As suggested by Ralf, I started on Ubuntu and installed libtorrent. | I have few issues
[...] | g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o | RLibTorrent.so RcppExports.o get_torrent_info.o -L/usr/lib/R/lib -lR It does not link to libtorrent. So you haven't quite groked how this works. In short: add to src/Makevars adding to the PKG_LIBS variable. So I suggest you step back and study one or two existing packages that link to external libraries -- we have loads to choose from. Just pick one. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel