<div dir="ltr"><div><div>I have installed a more recent compiler and would like to use the -std=c++11 flag instead of the -std=c++0x.<br><br></div>system('g++ --version')<br></div>truncated... 5.2.0<br><div><br></div><div>I have a Makevars.win file where I initially set the CXX_STD=CXX11 however this uses the default C++11 flag returned from R CMD config CXX1XSTD (i.e. c++0x).  This is insufficient as I am using template aliases (not supported in c++0x).<br><br></div><div>I also tried putting the -std=c++11 directly in the PKG_CXXFLAGS but I get an error stating:<br><br></div><div>cc1plus.exe: error: unrecognized command line option '-std=c++11'<br><br></div><div>I can use the C++11 flag if I set PKG_CXXFLAGS manually and run sourceCpp on a single file but I want to apply it over an entire package.<br><br></div><div>Thanks,<br></div><div>Charles<br></div><div><br><br></div><div><br></div></div>