<div dir="ltr">Hi Dirk,<div><br></div><div> thanks for the fix. Both the package created using <span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">RcppArmadillo.package.skeleton() and my original</span></div>

<div><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">package work on Windows when the new flag is added and the new RcppArmadillo version is used. </span></div><div><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px"><br>

</span></div><div><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">I was a bit surprised to see </span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">that they work also on win-builder, which (I guess) links against the old RcppArmadillo version.</span></div>

<div><br></div><div>Thanks,</div><div><br></div><div>Matteo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 31, 2014 at 8:16 PM, 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"><br>
Matteo,<br>
<br>
Try updating RcppArmadillo from the GitHub repo.  It now contains a release<br>
candidate for 0.4.300.7.0, based on an updated Armadillo 4.300.7 in which<br>
Conrad added<br>
       #define ARMA_DONT_USE_CXX11<br>
which you should set, either via a -DARMA_DONT_USE_CXX11  to, say, PKG_CXXFLAGS<br>
in src/Makevars (or just src/Makevars.win), or in your code before you<br>
       #include <RcppArmadillo.h><br>
<br>
With this, and even though you turn on C++11 for _your code_ it will not use<br>
C++11 in Armadillo avoiding the issue experienced on Windows where g++ 4.6.2<br>
is not new enough for some of the idioms used inside Armadillo.<br>
<br>
But as Armadillo is so neatly #ifdef'ed you should still be able to set up<br>
your package and proceed.<br>
<br>
Give it a spin and let us know how it goes. I plan to ship this version of<br>
RcppArmadillo to CRAN in the next few days.<br>
<br>
Cheers, Dirk<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</div></div></blockquote></div><br></div>