[Rcpp-devel] Where is R.h and the other header files?

Dirk Eddelbuettel edd at debian.org
Mon Aug 27 01:44:46 CEST 2012


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 | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list