Hi Rodney, I have the same problem as you on Mac OSX.
I'm able to successfully compile the file through sourceCpp if I use a file extension of .cpp rather than .cxx. Could this somehow be the reason why? Let me know if that works for you. -Kevin On Wed, May 22, 2013 at 4:27 PM, Sparapani, Rodney <[email protected]> wrote: > And here is the failure on OS X ML... > > > sourceCpp(verbose=TRUE, rebuild=TRUE, file="~/arma-sp.cxx") > > Generated extern "C" functions > -------------------------------------------------------- > > > #include <Rcpp.h> > > RcppExport SEXP sourceCpp_41979_convertSparse(SEXP matSEXP) { > BEGIN_RCPP > Rcpp::RNGScope __rngScope; > S4 mat = Rcpp::as<S4 >(matSEXP); > convertSparse(mat); > return R_NilValue; > END_RCPP > } > > Generated R functions > ------------------------------------------------------- > > `.sourceCpp_41979_DLLInfo` <- > dyn.load('/var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c/sourceCpp_88708.so') > > convertSparse <- Rcpp:::sourceCppFunction(function(mat) {}, > `.sourceCpp_41979_DLLInfo`, 'sourceCpp_41979_convertSparse') > > rm(`.sourceCpp_41979_DLLInfo`) > > Building shared library > -------------------------------------------------------- > > DIR: > /var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c > > /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB -o > 'sourceCpp_88708.so' --preclean 'arma-sp.cxx' > Error in > dyn.load("/var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c/sourceCpp_88708.so") > (from arma-sp.cxx.R#1) : > unable to load shared object > '/var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c/sourceCpp_88708.so': > > dlopen(/var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c/sourceCpp_88708.so, > 6): image not found > > sessionInfo() > R version 2.15.2 (2012-10-26) > Platform: i386-apple-darwin9.8.0/i386 (32-bit) > > locale: > [1] C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] RcppArmadillo_0.3.6.1 Rcpp_0.10.2 Matrix_1.0-10 > lattice_0.20-13 > > loaded via a namespace (and not attached): > [1] compiler_2.15.2 grid_2.15.2 tools_2.15.2 > > Thanks for any hints. > > Rodney > _______________________________________________ > Rcpp-devel mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > -- -Kevin
_______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
