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 <dar...@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

_______________________________________________
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

Reply via email to