[R-pkg-devel] C++11: which is currently the most portable option?

Dirk Eddelbuettel edd at debian.org
Fri Sep 30 16:50:17 CEST 2016


On 30 September 2016 at 09:16, Charles Determan wrote:
| I believe you could just put the following in your DESCRIPTION file so the
| R version takes care of the C++11 flag.
| 
| SystemRequirements: C++11

This is _one_ of _two_ equivalent choices, the other (which is my preference)
is to add this ti src/Makevars{,.win}

## We want C++11 
CXX_STD = CXX11

In _either case_ R will know what to do and pick -std=c++0x or -std=c++11
depending on what it saw during its compilation.  See its etc/Makeconf.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the R-package-devel mailing list