On 22 May 2013 at 18:14, Chris Paciorek wrote: | In creating a test package that uses Rcpp, I needed to add the following line | to the Makevars file that is in the skeleton folder of the Rcpp package bundle: | PKG_CPPFLAGS=`Rscript -e 'Rcpp:::CxxFlags()'` | Otherwise, the compiler was not able to find Rcpp.h when installing my test | package. | | I might be missing something, but shouldn't the PKG_CPPFLAGS bit be in those | example Makevars files?
No, since 'LinkingTo: Rcpp' in the DESCRIPTION does it, and does it better. The skeleton examples use that feature too. [ That said, we used to use this until we got LinkingTo: from R Core. ] Dirk -- Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
