[R-pkg-devel] CXX14 not defined on Windows
Ralf Stubner
r@||@@tubner @end|ng |rom gm@||@com
Wed Feb 5 11:47:15 CET 2020
On Tue, Feb 4, 2020 at 5:51 PM Guido Kraemer <gkraemer using bgc-jena.mpg.de> wrote:
> I have also set `~/.R/Makevars.win` as suggested in the manual "Writing
> R extensions", Section 1.2.5 "Using C++14 code".
What exactly do you have in src/Makevars.win? Just the simple CXX_STD
= CXX14 or the more complex set-up from the end of section 1.2.5..
The rstan package is on CRAN including windows binaries and uses
C++14. In src/Makevars.win they have
CXX_STD = CXX14
CXX14STD = -std=c++1y
c.f. https://github.com/stan-dev/rstan/blob/40e93534e771d8c536ddb60fc62e86a5b55596de/rstan/rstan/src/Makevars.win#L2-L3
cheerio
ralf
More information about the R-package-devel
mailing list