[Rcpp-devel] Problem compling rinside_sample0 on OSX

Romain Francois romain at r-enthusiasts.com
Tue Apr 6 12:19:33 CEST 2010


Le 06/04/10 12:14, Dirk Eddelbuettel a écrit :
> Hi Dan,
>
> Thanks for switching to the list.
>
> On 5 April 2010 at 22:12, Dan Kulp wrote:
> | Hey,
> |   I just installed Rcpp RInside successful using CRAN, but when I try to
> | "make rinside_sample0" I get the following linking errors:
> |
> | ld warning: option -s is obsolete and being ignored
> | Undefined symbols:
> |   "SEXPREC* Rcpp::grow<Rcpp::Named>(Rcpp::Named const&, SEXPREC*)",
> | referenced from:
> |       SEXPREC* Rcpp::pairlist<Rcpp::Function, Rcpp::Named,
> | Rcpp::Named>(Rcpp::Function const&, Rcpp::Named const&, Rcpp::Named
> | const&)in libRInside.a(RInside.o)
> |       SEXPREC* Rcpp::pairlist<Rcpp::Function, Rcpp::Named,
> | Rcpp::Named>(Rcpp::Function const&, Rcpp::Named const&, Rcpp::Named
> | const&)in libRInside.a(RInside.o)
> | ld: symbol(s) not found
> | collect2: ld returned 1 exit status
> | make: *** [rinside_sample0] Error 1
>
> I think I just had that yesterday at work -- you do have to be careful to use
> _matching_ RInside and Rcpp releases.  Which I why going with CRAN is a good
> option.
>
> Using the _released_ versions 0.7.11 for Rcpp and 0.2.2 for RInside should
> 'just work'.   As Romain said, please send along the version numbers you used.

Totally. It seems though that when you install from cran you get Rcpp 
0.7.10 even though cran advertizes 0.7.11, but I did not try all mirrors.


> | Is this an OSX specific thing, or is the example code not sync'd with the
> | library from CRAN?.... or something else?
>
> We do try to make pretty sure that this works for _released_ versions.
 >
> Rcpp tends to change a lot so there sometimes is something changing at its
> side that may not yet be reflected at the RInside side. We try to minimise
> that but it happens. Sticking with the releases should help as a remedy.
>
> Thanks, Dirk
>


-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/9aKDM9 : embed images in Rd documents
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7



More information about the Rcpp-devel mailing list