<div dir="ltr">The most recent Rtools still uses 4.6.3 so that doesn't help here.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 10:34 AM, 覃文锋 <span dir="ltr"><<a href="mailto:mail@qinwf.com" target="_blank">mail@qinwf.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can try Rtools 3.3<br><br><a href="https://cran.r-project.org/bin/windows/Rtools/" target="_blank">https://cran.r-project.org/bin/windows/Rtools/</a><br><br><a href="https://github.com/rwinlib/r-base" target="_blank">https://github.com/rwinlib/r-base</a> <br><br><a href="http://www.stat.ucla.edu/%7Ejeroen/mingw-w64/" target="_blank">http://www.stat.ucla.edu/%7Ejeroen/mingw-w64/</a><br><br><font size="2">------</font><br>Okay, is there a way for me to use the newer compiler for building the package on Windows?  I've tried everything I can think of and fail to get the new one to register when building a package.<br><br>Charles<br><br>On Tue, Nov 10, 2015 at 10:16 AM, Dirk Eddelbuettel <<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>> wrote:<br><blockquote><div><br>On 10 November 2015 at 10:00, Charles Determan wrote:<br>| I have installed a more recent compiler and would like to use the -std=c++11<br>| flag instead of the -std=c++0x.<br>|<br>| system('g++ --version')<br>| truncated... 5.2.0<br>|<br>| I have a Makevars.win file where I initially set the CXX_STD=CXX11 however this<br>| uses the default C++11 flag returned from R CMD config CXX1XSTD (i.e. c++0x). <br>| This is insufficient as I am using template aliases (not supported in c++0x).<br>|<br>| I also tried putting the -std=c++11 directly in the PKG_CXXFLAGS but I get an<br>| error stating:<br>|<br>| cc1plus.exe: error: unrecognized command line option '-std=c++11'<br><br>That would suggest that g++-4.6.2.exe is still running.<br><br>Dirk<br><br>| I can use the C++11 flag if I set PKG_CXXFLAGS manually and run sourceCpp on a<br>| single file but I want to apply it over an entire package.<br>|<br>| Thanks,<br>| Charles<br>|<br>|<br>|<br>| _______________________________________________<br>| Rcpp-devel mailing list<br>| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>| <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><span class="HOEnZb"><font color="#888888"><br><br><font color="#888888">--</font><br><a href="http://dirk.eddelbuettel.com" target="_blank"><font color="#888888">http://dirk.eddelbuettel.com</font></a><font color="#888888"> | @eddelbuettel | </font><a href="mailto:edd@debian.org" target="_blank"><font color="#888888">edd@debian.org</font></a><br></font></span></div></blockquote><br></blockquote></div><br></div>