Closed MBeuttler closed 2 years ago
Try updating gcc
.
@eddelbuettel Should there be other flags in Makevars?
The problem here is R 3.5.3 as seen from the log. The current R 4.0.0 defaults to C++11; the soon-to-arrive R 4.1.0 (by mid-April) will default to C++14.
But yes, for older packages we can easily enforce it, and we have done so for a long. Look e.g. at the skeleton Makevars added by the package helper RcppArmadillo.package.skeleton. Here the link lines are equally important so make sure to take lines 11 to 14. And, looking at this, I have to double check if PKG_CXXFLAGS
should now be PKG_CXX11FLAGS
.... [did check, still ok ;-) , it is the non-package CXXFLAGS
that get 11, 14, 17, ... injected ]
Looks like I had that in Makevars.win but not Makevars. Now using your skeleton Makevars instead.
CXX_STD flag seems missing under src/Makevars: CXX_STD = CXX11