Skip to content
Prev 356 / 10988 Next

[Rcpp-devel] R CMD check not happy about -std=c++0x

Hello,

With a lot of hard work this weekend, we finally found a decent 
workaround, using the CXXOPTS variable as follows:

PKG_CPPFLAGS=$(shell Rscript -e "Rcpp:::CxxFlags()" )
PKG_LIBS = $(shell Rscript -e "Rcpp:::LdFlags()" )
CXXOPTS = $(shell Rscript -e "Rcpp:::Cxx0xFlags()" )

where Rcpp:::Cxx0xFlags will be available in the next version (already 
in the development version)

- Rcpp:::CxxFlags() will no longer include "-std=c++0x" because this is 
forbidden by R.
- Rcpp:::Cxx0xFlags() checks which compiler is in use, and iif this is 
GCC >= 4.3 it adds "-std=c++0x"

This makes both R CMD check and us happy.

Romain
On 01/15/2010 08:27 AM, Romain Fran?ois wrote: