On 26 August 2012 at 22:08, Søren Højsgaard wrote: | I assume that you compile with | | R CMD SHLIB foo.cpp | | In that case, it might help to create a Makevars file with the content | PKG_LIBS=`Rscript -e "Rcpp:::LdFlags()"` | PKG_CXXFLAGS=`Rscript -e "Rcpp:::CxxFlags()"`
Or use a package in which case PKG_CXXFLAGS is no longer needed as R knows via 'LinkingTo: Rcpp' where to find the headers. It still needs to be told about the library, and PKG_LIBS as shown will do. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ 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