<div dir="ltr">Hi Dirk,<div><br></div><div> hopefully this is what you meant: I have searched the sources of RcppArmadillo, Rcpp and R-3.1.0 </div><div>for the string "#undef WIN32", but I didn't find anything. </div>
<div><br></div><div>I used for example: grep -rnw 'RcppArmadillo' -e '#undef WIN32'    </div>
<div><br></div><div>Matteo </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 29, 2014 at 1:31 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><br>
On 29 May 2014 at 12:42, Matteo Fasiolo wrote:<br>
| Hello,<br>
|<br>
|  I have tried win-builder on a basic package constructed<br>
| with RcppArmadillo.package.skeleton() and<br>
| adding the line:<br>
|<br>
| CXX_STD = CXX11<br>
|<br>
| to Makevars.win triggers the error:<br>
|<br>
| d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadilloConfig.h:90:35: fatal error: RcppArmadilloLapack.h: No such file or directory<br>
|<br>
| Does this help?<br>
<br>
</div>So WIN32 gets undefined when CXX_STD, invalidating the check I have there.<br>
Can you have a look at the sources and see where WIN32 gets undefined?<br>
<span><font color="#888888"><br>
Dirk<br>
</font></span><div><div><br>
| Matteo<br>
|<br>
|<br>
|<br>
| On Wed, May 28, 2014 at 11:47 PM, Matteo Fasiolo <<a href="mailto:matteo.fasiolo@gmail.com" target="_blank">matteo.fasiolo@gmail.com</a>><br>
| wrote:<br>
|<br>
|     Hi Dirk,<br>
|<br>
|      many thanks for the prompt reply.<br>
|<br>
|     Tomorrow I will simplify the package to locate the origin of the bug (which<br>
|     should<br>
|     be caused by one of the dependencies I guess).<br>
|<br>
|     Matteo<br>
|<br>
|<br>
|     On Wed, May 28, 2014 at 11:23 PM, Dirk Eddelbuettel <<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>> wrote:<br>
|<br>
|<br>
|         Matteo,<br>
|<br>
|         I may have found it. It is not as broken as I feared.  At the end of<br>
|         RcppArmadilloConfig.h we have<br>
|<br>
|         // R can be built with its own Rlapack library, or use an external<br>
|         // one. Only the latter has zgesdd, a complex-valued SVD using<br>
|         divide-and-conquer<br>
|         #ifdef WIN32<br>
|           // on Windows we do not assume ZGESDD<br>
|           #define ARMA_DONT_USE_CX_GESDD 1<br>
|         #else<br>
|           // on the other OSs we test via LAPACK_LIBS (in configure) which<br>
|           // updates this include file<br>
|           #include <RcppArmadilloLapack.h><br>
|         #endif<br>
|<br>
|         so it was supposed to only include the library RcppArmadilloLapack.h if<br>
|         NOT<br>
|         on Windows.  Somehow your configuration has undefined WIN32.<br>
|<br>
|         We need to figure out why / who / where and correct it, and / or find a<br>
|         better #ifdef here.<br>
|<br>
|         Dirk<br>
|<br>
|         --<br>
|         Dirk Eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
|<br>
|<br>
|<br>
|<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</div></div></blockquote></div><br></div></div>