[Rcpp-devel] Rcpp - libtorrent

Dirk Eddelbuettel edd at debian.org
Sun Feb 17 20:38:37 CET 2019


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 | edd at debian.org


More information about the Rcpp-devel mailing list