<div dir="auto"><div>Ok thanks i will but have added the Makevars file and the PKG_LIBS variable.</div><div dir="auto"><br></div><div dir="auto">I will have a look at other packages.<br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Sun, 17 Feb 2019 19:38 Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 17 February 2019 at 19:20, Morgan Morgan wrote:<br>
| So I tried to create a github repo : <a href="https://github.com/2005m/RLibTorrent" rel="noreferrer noreferrer" target="_blank">https://github.com/2005m/RLibTorrent</a><br>
| <br>
| As suggested by Ralf, I started on Ubuntu and installed libtorrent.<br>
| I have few issues<br>
<br>
[...]<br>
<br>
| g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o<br>
| RLibTorrent.so RcppExports.o get_torrent_info.o -L/usr/lib/R/lib -lR<br>
<br>
It does not link to libtorrent. So you haven't quite groked how this works.<br>
In short: add to src/Makevars adding to the PKG_LIBS variable.<br>
<br>
So I suggest you step back and study one or two existing packages that link<br>
to external libraries -- we have loads to choose from. Just pick one.<br>
<br>
Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank" rel="noreferrer">edd@debian.org</a><br>
</blockquote></div></div></div>