[Rcpp-devel] g++ flags

Gabor Grothendieck ggrothendieck at gmail.com
Wed Apr 30 15:59:14 CEST 2014


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.

It would presumably have the same problem on any OS if used witih g++
4.6.3.  An OS-independent way to do this would be to examine the
version of g++ used and act accordingly:

> sub(".*\\D(\\d+[.]\\d+[.]\\d+).*", "\\1", system("g++ --version", intern = TRUE)[1])
[1] "4.6.3"


More information about the Rcpp-devel mailing list