Resent with fixed rcpp-devel address...<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Dominick Samperi</b> <span dir="ltr">&lt;<a href="mailto:djsamperi@gmail.com">djsamperi@gmail.com</a>&gt;</span><br>
Date: Mon, Jul 26, 2010 at 10:38 AM<br>Subject: Re: [Rd] Toolchains for x64 Windows<br>To: Prof Brian Ripley &lt;<a href="mailto:ripley@stats.ox.ac.uk">ripley@stats.ox.ac.uk</a>&gt;<br>Cc: <a href="mailto:Rcpp-devel@r-project.org">Rcpp-devel@r-project.org</a><br>
<br><br><br><div class="gmail_quote"><div class="im">On Mon, Jul 26, 2010 at 2:58 AM, Prof Brian Ripley <span dir="ltr">&lt;<a href="mailto:ripley@stats.ox.ac.uk" target="_blank">ripley@stats.ox.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

The most critical change is to no longer have an additional leading underscore on symbols, and we will adopt that convention for R 2.12.0. R-devel is now set up by default to use it: if you have been building R-devel with an older toolchain you will need to start afresh with the new one, a snapshot of which is at<br>


<a href="http://www.stats.ox.ac.uk/pub/Rtools/Win64No_toolchain.zip" target="_blank">http://www.stats.ox.ac.uk/pub/Rtools/Win64No_toolchain.zip</a><br>
<br>
The currently recommended tools are (as ever) documented in the R-admin manual for the version of R you use.<br></blockquote></div><div><br>I missed this posting and had to do some hacking to work-around a related problem. This posting<br>

seems to suggest that this is an issue for R 2.12+, but I ran into issues with R 2.11.1.<br><br>I think what is happening is the latest version of g++ is not inserting a leading &quot;_&quot; in<br>symbol names, yet the build of R x64 that I downloaded included a version of<br>

&lt;R&gt;/share/make/<a href="http://winshlib.mk" target="_blank">winshlib.mk</a> that assumed that the underscores are present and<br>need to be stripped.<br><br>I guess the lesson here is that the version of R/x64 and Rtools used need to be<br>

compatible. I&#39;ve appended my earlier post on this matter.<br><br>Dominick<br><br>Hello,<br><br>After much tinkering I managed to build packages using the 64bit version of<br>R with the help of hints from<br><a href="http://www.murdoch-sutherland.com/Rtools/" target="_blank">http://www.murdoch-sutherland.com/Rtools/</a><br>


and<br><a href="http://www.stats.ox.ac.uk/%7Eripley/Win64/W64porting.html" target="_blank">http://www.stats.ox.ac.uk/~ripley/Win64/W64porting.html</a><br>and<br>R-admin Manual.<br><br>But a hack was required, and this seems to be related to<br>


a comment about underscores at the end of the second<br>reference above (but this comment is about FUTURE<br>changes in R starting with 2.12.x, and I&#39;m not sure how<br>it applies to the current problem using 2.11.1).<br>


<br>If I simply follow the instructions of the first reference I<br>get lots of &quot;cannot export / symbol not defined&quot; errors because<br>by default the leading underscore is stripped off during the<br>shared library build process, specifically, all names in<br>


tmp.def (created in share/<a href="http://winshlib.mk/" target="_blank">winshlib.mk</a>) do not contain a<br>leading underscore.<br><br>If I modify share/<a href="http://winshlib.mk/" target="_blank">winshlib.mk</a> so that the leading underscore<br>

is not stripped everything works fine.<br>
<br>Have I missed some documentation explaining what is<br>going on here?<br><br>Thanks,<br><font color="#888888">Dominick<br></font><br></div></div>
</div><br>