<div dir="ltr">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.<div><br></div><div>Charles</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 10:16 AM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><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>
</span>That would suggest that g++-4.6.2.exe is still running.<br>
<br>
Dirk<br>
<span class=""><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>
</span>| _______________________________________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">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" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</font></span></blockquote></div><br></div>