Displaying 1 result from an estimated 1 matches for "r_main".
Did you mean:
_main
1999 Feb 18
0
Loading C++ libraries
Some time ago, I asked on this list, if it is possible to use C++
libraries
under R. In fact this seems to be very easy (at least under Redhat 5.2,
egcs C++):
e.g.
Suppose we have a library
R_main.cc:
-------------------------------
#include "X.hh"
extern "C" {
void R_main ()
{
X x;
}
}
-------------------------------
X.hh
-------------------------------
class X
{
public:
X ();
~X ();
};
class Y
{
public:
Y ();
~Y ();
};
-------------------------------
X.cc:...