Those ld warnings you're seeing, I think, are artefacts of the binary version of R that you got from CRAN (someone else correct me if I'm wrong). Basically, ld is searching for library-containing directories that were used with the old versions of compilers, and warning you that they don't exist. You can safely ignore these errors, or silence them by creating empty directories at the locations it's searching in. The fact that the linking step succeeds suggests ld is finding the necessary libraries elsewhere now (as expected).
-Kevin On Mon, Nov 4, 2013 at 9:56 AM, Scott Monroe <[email protected]> wrote: > Thanks, Kevin. > > Everything is working now, which is fantastic. I still do get 'ld' > warnings, but the function works just fine. Do those warnings indicate any > other problems (e.g., when making a package)? > > Thanks again, Scott > > > On Mon, Nov 4, 2013 at 9:44 AM, Kevin Ushey <[email protected]> wrote: >> >> The .tgz files aren't source packages; those are the formats given to >> the binary packages distributed on CRAN. You should be able to install >> the source versions with install.packages( c("Rcpp", "RcppArmadillo"), >> type="source") (and these are served up as .tar.gz). >> >> Make sure your ~/.R/Makevars file is set up accordingly as well; e.g. >> the answers here: >> >> http://stackoverflow.com/questions/19546672/rcpp-error-with-xcode-5-0-and-osx-10-8-5-and-r-3-0-2 >> >> -Kevin >> >> On Mon, Nov 4, 2013 at 9:35 AM, Scott Monroe <[email protected]> >> wrote: >> > 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/[email protected]/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. >> > >> > _______________________________________________ >> > Rcpp-devel mailing list >> > [email protected] >> > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > > _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
