[Rcpp-devel] Compilation errors when building a package with RcppArmadillo code and using attributes

Dirk Eddelbuettel edd at debian.org
Sun Dec 2 17:22:54 CET 2012


On 2 December 2012 at 10:29, Howard Zail wrote:
| Thanks Yan.  This solved the issue:  I did the following change:
| 
| Link against the Rcpp, blas and lapack libraries, by adding this line in the
| Makevars
| 
| PKG_LIBS = $(shell $(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()" ) $(LAPACK_LIBS)
| $(BLAS_LIBS) $(FLIBS) 
| and this line to the Makevars.win:
| PKG_LIBS = $(shell $(R_HOME)/bin${R_ARCH_BIN}/Rscript.exe -e "Rcpp:::LdFlags()
| ") $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

Right. This is both the default for RcppArmadillo --- see the skeleton/
directory in the installed package --- and its inline plugin.  As JJ said,
not everything is fully automated yet.

But you wrote 'when I use "Rcpp.package.skeleton()..."' and that may have
been the error.  Can you check if RcppArmadillo.package.skeleton() does better?

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list