[Rcpp-devel] More Rccp and RccpArmadillo Errors on Mavericks
Scott Monroe
monroeleescott at gmail.com
Mon Nov 4 18:35:22 CET 2013
This is sort of piggy-backing on the thread with Michael and Romain.
I can't get RccpArmadillo working properly and am looking for suggestions.
I have installed:
R 3.0.2
Xcode 5.0.1 and command line tools
gfortran libs (i.e., gfortran-4.9-bin.tar)
Rcpp package from source (i.e., Rcpp_0.10.6.tgz)
RcppArmadillo package from source (i.e., RcppArmadillo_0.3.920.1.tgz)
below, "rowSums.cpp" contains a function Romain Francis wrote, and can be
seen in the middle of this post:
http://www.mail-archive.com/rcpp-devel@lists.r-forge.r-project.org/msg05742.html
In the R session, I have:
> evalCpp("1+1")
[1] 2
> sourceCpp("rowSums.cpp")
Error in
dyn.load("/var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so")
:
unable to load shared object
'/var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so':
dlopen(/var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so,
6): Symbol not found:
__ZNK4Rcpp7RObject4attrERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
Referenced from:
/var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so
Expected in: flat namespace
in
/var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RcppArmadillo_0.3.920.1 Rcpp_0.10.6
loaded via a namespace (and not attached):
[1] tools_3.0.2
Any suggestions? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131104/ff1d3f1e/attachment.html>
More information about the Rcpp-devel
mailing list