After upgrading to Ubuntu 16.10, which brings GCC 6, I've noticed that
packages are compiled in C++14 mode by default. Here's what a g++
command for compiling one of Rcpp's modules look like on my system:
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -c barrier.cpp -o barrier.o
According to GCC news [1], the default is now C++14 if no -std is given.
R-admin suggests adapting the configuration for GCC 6 [2].
I'm using r-base-core in version 3.3.2-1xenial0 from the Ubuntu repo
[3]. Please advise.
Best regards
Kirill
[1] https://gcc.gnu.org/gcc-6/changes.html
[2]
https://cran.r-project.org/doc/manuals/r-release/R-admin.html#C_002b_002b-Support
[3] http://stat.ethz.ch/CRAN/bin/linux/ubuntu
_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian