Re: [R] C++ code from R

2008-11-19 Thread Rainer M Krug
On Wed, Nov 19, 2008 at 2:57 PM, Duncan Temple Lang <[EMAIL PROTECTED]> wrote: > > > Rainer M Krug wrote: >> >> Hi >> >> I managed to compile (and use) C code from R, but now I have to use C++ >> code. >> After reading "Writing R extensions", I came up with the following >> code, which compiles fin

Re: [R] C++ code from R

2008-11-19 Thread Duncan Temple Lang
Rainer M Krug wrote: Hi I managed to compile (and use) C code from R, but now I have to use C++ code. After reading "Writing R extensions", I came up with the following code, which compiles fine --- // emdL1_R.cc: #include #include #include "emdL1.h" extern "C" { void em

[R] C++ code from R

2008-11-19 Thread Rainer M Krug
Hi I managed to compile (and use) C code from R, but now I have to use C++ code. After reading "Writing R extensions", I came up with the following code, which compiles fine --- // emdL1_R.cc: #include #include #include "emdL1.h" extern "C" { void emd_L1( doubl