Re: [Rd] Help on interfacing C++ with R

2006-03-13 Thread Roger Bivand
On Mon, 13 Mar 2006 [EMAIL PROTECTED] wrote: > Hi, I am trying to set up a C++ library for my R code. I followed the > R-extension manual but found out that the example of "X.cpp, X_main.cpp" > is somewhat too simple. Here is my code: Simpler is easier, all this std stuff gets in the way. The p

[Rd] Help on interfacing C++ with R

2006-03-13 Thread Sun . Bing
Hi, I am trying to set up a C++ library for my R code. I followed the R-extension manual but found out that the example of "X.cpp, X_main.cpp" is somewhat too simple. Here is my code: //lib4R.h testing for interfacing C++ with R -- using C++ library in R #include using namespace std; class li