I have used the same setup as in Section 1.2.5 of the manual and have set CXX_STD=CXX14 in src/Makevars.win. No I also remember that, when I sent the package to winbuilder, some time ago, it started compiling (the compile failed, but at least it tried).

On 2/5/20 11:47 AM, Ralf Stubner wrote:
On Tue, Feb 4, 2020 at 5:51 PM Guido Kraemer <gkrae...@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

--
Guido Kraemer
Max Planck Institute for Biogeochemistry Jena
Department for Biogeochemical Integration
Hans-Knöll-Str. 10
07745 Jena
Germany

phone: +49 3641 576293
e-mail: gkrae...@bgc-jena.mpg.de

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to