Hi All, I am slowly switching to Rcpp (what a wonderful tool!).. The classic Rcpp works fine.. but when I try to run a code with RccpArmadillo, I get the following error..
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Users/ms486/Library/R/3.1/library/Rcpp/include" -I"/Users/ms486/Library/R/3.1/library/RcppArmadillo/include" -fPIC -Wall -mtune=core2 -g -O2 -c test2.cpp -o test2.o clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o sourceCpp_40346.so test2.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2 -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation Error in sourceCpp("test2.cpp") : Error 1 occurred building shared library. ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2' ld: library not found for -lquadmath clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [sourceCpp_40346.so] Error 1 Here is the outcome of the Rsession R version 3.1.0 (2014-04-10) Platform: x86_64-apple-darwin13.1.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] Rcpp_0.11.1 loaded via a namespace (and not attached): [1] parallel_3.1.0 RcppArmadillo_0.4.200.0 tools_3.1.0 Thanks for your help! _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel