Re: [Rd] Accessing C++ code from R

2007-04-04 Thread Jos Elkink
ows off iostream). > Also note that using cout is not a good idea, because it is not > captured by R, you should be using Rprintf instead. > > Cheers, > Simon > > On Apr 4, 2007, at 1:44 PM, Jos Elkink wrote: > > > Hi, > > > > I am trying to use existing C++

[Rd] Accessing C++ code from R

2007-04-04 Thread Jos Elkink
Hi, I am trying to use existing C++ code from R. I have no problems compiling C code and using it in R, but with C++ I'm running into problems. Here's the compiler output: Macintosh-10:~/Desktop/dissertation/Model - CPP version/R labguest$ g++ -I/Library/Frameworks/R.framework/Resources/include