[Rcpp-devel] g++ flags

Romain Francois romain at r-enthusiasts.com
Wed Apr 30 15:19:09 CEST 2014


The plugin as implemented now is not portable. The easiest way to make it portable would be to define the USE_CXX1X environment variable, which R knows how to interpret. 

This way R would do what makes sense, i.e. use -std=c++0x on windows (for which rtools is limited to gcc 4.6.3 now) and -std=c++11 when it makes sense. 

Romain

Le 30 avr. 2014 à 15:10, Darren Cook <darren at dcook.org> a écrit :

>> The problem seems to be that Rcpp uses -std=c++11; however, g++ 4.6.3,
>> which is what comes with the latest version of Rtools on Windows, uses
>> -std=c++0x or -std=gnu++0x ...
> 
> In g++ 4.8.1 those two are deprecated in favour of -std=c++11 and
> -std=gnu++11 respectively; however they are still available.
> 
> Darren



More information about the Rcpp-devel mailing list