[R] DLLs adding in C++ code

Philippe Grosjean phgrosje at ulb.ac.be
Thu Nov 14 09:48:37 CET 2002


Brian D. Ripley write:
>There are details of how to do this in readme.packages.  Either you
>haven't read it or you haven't understood it?  Which?

>Hint: you don't have the right compiler flags, and it looks to me as if
>you have non-standard ones at that.  *If* you follow the instructions to
>use cdecl linkage you should have less trouble.
>[...]

Just to add my 10 cents here. A solution to this problem is to build a
wrapper, that is a standard dll interface that passes calls from R to the
C++ dll. However, there may be soon a new package (thanks, Tomas Baier and
Erich Neuwirth!) that allows R to act as a COM client, meaning that calls to
COM servers, either in-process (ddls), or out-of-process (exes), and
probably also on different machines (D-COM) will be immediate (no or few
recoding in  C++, direct access in S language).

Best,

Philippe Grosjean

...........]<(({?<...............<?}))><...............................
( ( ( ( (
 ) ) ) ) )      Philippe Grosjean
( ( ( ( (
 ) ) ) ) )      IFREMER Nantes - DEL/AO
( ( ( ( (       rue de l'Ile d'Yeu, BP 21105, 44311 Nantes Cedex 3
 ) ) ) ) )      tel: (33) 02.40.37.42.29, fax: (33) 02.40.37.42.41
( ( ( ( ( 
 ) ) ) ) )      SciViews project coordinator (http://www.sciviews.org)
( ( ( ( (       e-mail: phgrosjean at sciviews.org
 ) ) ) ) ) 
( ( ( ( (       "I'm 100% confident that p is between 0 and 1"
 ) ) ) ) )                                L. Gonick & W. Smith (1993)
.......................................................................




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list