<div dir="ltr">Hi,<div><br></div><div>Sorry for the delay in getting back to this; I took the opportunity to rewrite a substantial part of the package, and this slowed down the update for those c++11 / clang issues.</div><div class="gmail_extra">
The bottom line is that using Rcpp::function in modules was enough to please OSX 10.9 on CRAN: <a href="http://www.r-project.org/nosvn/R.check/r-devel-macosx-x86_64/cda-00check.html">http://www.r-project.org/nosvn/R.check/r-devel-macosx-x86_64/cda-00check.html</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra"><br></div><div class="gmail_extra">baptiste</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 31 October 2013 13:15, Romain Francois <span dir="ltr"><<a href="mailto:romain@r-enthusiasts.com" target="_blank">romain@r-enthusiasts.com</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 class="im">Le 31/10/2013 15:59, baptiste auguie a écrit :<br>
</div><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">
Dear Rcpp gurus,<div class="im"><br>
<br>
Today a CRAN maintainer informed us of the failure of a few Rcpp-related<br>
packages to build under the new version of the Mac operating system, OS<br>
X 10.9 aka Mavericks.<br>
I do have access to a Mac, but I'm reluctant (in fact, unable) to update<br>
to Mavericks, therefore I'm in the dark when it comes to fixing /testing<br>
for the errors reported in the log file. On a positive note, it appears<br>
at first sight that most of the errors are relatively benign, and<br>
similar-looking issues are reported for all the packages involved. That<br>
gives me hope that once the underlying issue is well identified, most<br>
packages can be fixed with minimal changes.<br>
<br>
Here's the info we were given from CRAN,<br>
<br>
"OS X 10.9 (aka Mavericks) has a new C++ compiler, clang++ with libcxx<br>
headers/runtime. Your package fails to compile with that compiler: see<br></div>
the appropriate log at <a href="http://www.stats.ox.ac.uk/pub/__bdr/Mavericks/" target="_blank">http://www.stats.ox.ac.uk/pub/<u></u>__bdr/Mavericks/</a><div class="im"><br>
<<a href="http://www.stats.ox.ac.uk/pub/bdr/Mavericks/" target="_blank">http://www.stats.ox.ac.uk/<u></u>pub/bdr/Mavericks/</a>> ."<br>
<br>
My two packages are cda and planar. The error seems to occur in the<br>
Modules definition, e.g. from this line in my code<br>
<br>
<a href="https://github.com/baptiste/planar/blob/master/src/multilayer.cpp#L231" target="_blank">https://github.com/baptiste/<u></u>planar/blob/master/src/<u></u>multilayer.cpp#L231</a><br>
<br>
where "function" is judged ambiguous, as far as I understand. This<br>
"function" is presumably something from<br>
Rcpp/include/Rcpp/module/<u></u>Module_generated_function.h but I am not<br>
familiar with that code.<br>
<br>
Any ideas, hints?<br>
<br>
Best regards,<br>
<br>
baptiste<br>
</div></blockquote>
<br>
I sent you a pull request on github.<br>
<br>
.function abuses the compiler recognition, it is just unfortunate that something else is called function, which is what confused it.<br>
<br>
Not sure there could be defenses against it.<br>
<br>
In the meantime, you should be fine by just using Rcpp::function </blockquote><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">
<br>
<br>
Also, for such trivial uses of modules (i.e. no classes), maybe it is worth considering using // [[Rcpp::export]] and code generation given by compileAttributes instead of modules.<div class=""><div class="h5"><br>
<br>
Romain<br>
<br>
-- <br>
Romain Francois<br>
Professional R Enthusiast<br>
+33(0) 6 28 91 30 30<br>
<br>
______________________________<u></u>_________________<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-<u></u>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-<u></u>project.org/cgi-bin/mailman/<u></u>listinfo/rcpp-devel</a><br>
</div></div></blockquote></div><br></div></div>