[Rcpp-devel] g++ flags

JJ Allaire jj.allaire at gmail.com
Wed Apr 30 16:15:26 CEST 2014


Romain,

I think this PR addresses the issue:

https://github.com/RcppCore/Rcpp/pull/143

I've tested and it seems to work as intended. Is this fix you were
conceiving of or is there something more we should be doing?

J.J.


On Wed, Apr 30, 2014 at 9:19 AM, Romain Francois
<romain at r-enthusiasts.com>wrote:

> 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
>
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140430/70f227e1/attachment.html>


More information about the Rcpp-devel mailing list