Re: [Rd] LinkingTo and C++

2010-07-11 Thread Dominick Samperi
While linking to package shared libs is not possible in general, as Simon point out, it is possible under Windows, provided Windows knows how to find the library linked to at runtime (this requires a customized Makefile.win). One way this is done under Windows is simply to place the package/libs di

Re: [Rd] LinkingTo and C++

2010-02-11 Thread Romain Francois
On 02/11/2010 07:40 PM, Simon Urbanek wrote: On Feb 11, 2010, at 12:24 PM, Romain Francois wrote: Thanks. On 02/11/2010 05:55 PM, Simon Urbanek wrote: Romain, I think your'e confusing two entirely different concepts here: Yes. The name "LinkingTo" probably helped my confusion. Admitte

Re: [Rd] LinkingTo and C++

2010-02-11 Thread Simon Urbanek
On Feb 11, 2010, at 12:24 PM, Romain Francois wrote: > Thanks. > > On 02/11/2010 05:55 PM, Simon Urbanek wrote: >> Romain, >> >> I think your'e confusing two entirely different concepts here: > > Yes. The name "LinkingTo" probably helped my confusion. > Admittedly, it's probably not the best

Re: [Rd] LinkingTo and C++

2010-02-11 Thread Romain Francois
Thanks. On 02/11/2010 05:55 PM, Simon Urbanek wrote: Romain, I think your'e confusing two entirely different concepts here: Yes. The name "LinkingTo" probably helped my confusion. 1) LinkingTo: allows a package to provide C-level functions to other packages (see R-ext 5.4). Let's say packa

Re: [Rd] LinkingTo and C++

2010-02-11 Thread Simon Urbanek
Romain, I think your'e confusing two entirely different concepts here: 1) LinkingTo: allows a package to provide C-level functions to other packages (see R-ext 5.4). Let's say package A provides a function foo by calling R_RegisterCCallable for that function. If a package B wants to use that f

Re: [Rd] LinkingTo and C++

2010-02-11 Thread Romain Francois
On 02/11/2010 10:08 AM, Romain Francois wrote: Hello, I've been trying to make LinkingTo work when the package linked to has c++ code. I've put dumb packages to illustrate this emails here ; http://addictedtor.free.fr/misc/linkingto Package A defines this C++ class: class A { public: A() ; ~

[Rd] LinkingTo and C++

2010-02-11 Thread Romain Francois
Hello, I've been trying to make LinkingTo work when the package linked to has c++ code. I've put dumb packages to illustrate this emails here ; http://addictedtor.free.fr/misc/linkingto Package A defines this C++ class: class A { public: A() ; ~A() ; SEXP hello() ;