[Rcpp-devel] Visual Studio compatible Rcpp

Dirk Eddelbuettel edd at debian.org
Tue Sep 14 16:35:49 CEST 2010


On 14 September 2010 at 10:26, pooja varshneya wrote:
| Thanks for the reply Romaine !! The FAQ entry says that R and Visual
| Studio don't get along.
| However, i managed to generate a Visual Studio compatible import
| library  for R from the instructions given in R source folder
| README.packages file.
| 
| Can you please elaborate on the problems you encountered in Visual
| Studio compilation ? Has anyone tried it before ?

Nope.

Because nobody has built R itself with VS/VC++ even though people have been
trying for a decade. [ Revolution's initial win64 port used the Intel
compiler. ]

And given that R doesn't built that way ... you end up an R binary built with
MinGW that will not be able to load your VS built library. 

So why bother?

| I am using Rcpp_0.8.0 because Rcpp_0.8.0 and RInside_0.2.0 are the
| only compatible versions running without segmentation fault on
| windows. When i upgrade to a later version, RInside examples crash
| with segmentation faults.

I think you can do one better one each -- 0.2.1 and 0.8.1.  That version I
had working too, but of course using MinGW.  We would appreciate debugging
help in restoring that functionality to current versions.  
 
| I greatly appreciate your help in this regard.

We make it clear how we use R and Rcpp, and R Core makes it clear how CRAN is
built so that many other users can take advantage of it.  You are out of
scope. So sorry -- but you are on your own.  

Good luck.

Dirk


| Thanks,
| Pooja
| 
| On Tue, Sep 14, 2010 at 2:19 AM, Romain Francois
| <romain at r-enthusiasts.com> wrote:
| > Le 13/09/10 23:26, pooja varshneya a écrit :
| >>
| >> Hi Folks,
| >>
| >> I need to use Rcpp and RInside packages for a project that is compiled
| >> using Visual Studio. I have managed to generate Visual Studio
| >> compatible import library for R.
| >> But now i am unable to install Rcpp package using 'R CMD INSTALL
| >> Rcpp_0.8.0.tar.gz'. I receive undefined reference errors as given
| >> below. Does anyone know the steps for compiling Rcpp and RInside using
| >> Visual Studio ?
| >>
| >>
| >> -------------------------------------------------------------------------------------------------------------
| >> debugging.o:debugging.cpp:(.text+0x1bc): undefined reference to
| >> `Rf_mkChar'
| >> debugging.o:debugging.cpp:(.text+0x1d0): undefined reference to
| >> `SET_STRING_ELT'
| >> exceptions.o:exceptions.cpp:(.text+0x286): undefined reference to
| >> `Rf_mkString'
| >> exceptions.o:exceptions.cpp:(.text+0x295): undefined reference to
| >> `Rf_install'
| >> exceptions.o:exceptions.cpp:(.text+0x2a8): undefined reference to
| >> `Rf_lang3'
| >> r_cast.o:r_cast.cpp:(.text+0x23): undefined reference to `TYPEOF'
| >> r_cast.o:r_cast.cpp:(.text+0x3d): undefined reference to `Rf_coerceVector'
| >> r_cast.o:r_cast.cpp:(.text+0x13f): undefined reference to `TYPEOF'
| >> r_cast.o:r_cast.cpp:(.text+0x1cc): undefined reference to
| >> `Rf_coerceVector'
| >> r_cast.o:r_cast.cpp:(.text+0x25b): undefined reference to `TYPEOF'
| >> .......
| >>
| >> -------------------------------------------------------------------------------------------------------------
| >>
| >>
| >> Thanks,
| >> Pooja
| >
| > See item 2.7 of the Rcpp-FAQ vignette:
| > http://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-FAQ.pdf
| >
| > Also, we released Rcpp 6 times since version 0.8.0, why would you use an
| > obsolete version ?
| >
| > Romain
| >
| >
| > --
| > Romain Francois
| > Professional R Enthusiast
| > +33(0) 6 28 91 30 30
| > http://romainfrancois.blog.free.fr
| > |- http://bit.ly/cCmbgg : Rcpp 0.8.6
| > |- http://bit.ly/bzoWrs : Rcpp svn revision 2000
| > `- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th
| >
| >
| >
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list