<html><body bgcolor="#FFFFFF"><div><br><br><div><br></div></div><div><br>Le 10 juil. 2010 à 15:16, Dominick Samperi <<a href="mailto:djsamperi@gmail.com">djsamperi@gmail.com</a>> a écrit :<br><br></div><div></div><blockquote type="cite"><div>On Sat, Jul 10, 2010 at 4:46 AM, Romain Francois <span dir="ltr"><<a href="mailto:romain@r-enthusiasts.com" target="_blank"><a href="mailto:romain@r-enthusiasts.com">romain@r-enthusiasts.com</a></a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
First of all I'm not sure what all of this buys us, so I'd be somehow reluctant to change something that works without understanding what we gain and what we lose.<br>
Why is this important/relevant for you. You say "there are situations where it is useful to link directly to Rcpp.dll". Please describe.<br></blockquote><div><br>This is more a matter of completeness than new functionality. Currently if you use<br>
Rcpp:::LdFlags(static=FALSE) under Windows you will not get the shared library, so this<br>option doesn't apply to Windows. WIth the change I suggested you would get<br>Rcpp/libs/Rcpp.dll in this case. I am not suggesting that the casual user should use<br>
this option, but at least Rcpp:::LdFlags() does something reasonable when passed <br>the FALSE option under Windows.<br></div></div></div></blockquote><div><br></div><div>Ah ok. It is worth testing it. </div><div><br></div><div>Feel free to patch it and send it to win builder. Unit tests in runit.client.package.r test that clienr packages work. I suppose this could be extended to test if static = FALSE works</div><div><br></div><br><blockquote type="cite"><div><div class="gmail_quote"><div>This is not really that important, but it could be if/when you have many clients, for the<br>same reason that having R.dll is important: all clients can link to the same image (provided<br>
it is not rebased).<br><br>BTW, on the Linux side there is double redundancy: not only is there Rcpp.so and<br>libRcpp.a (containing the same code), but there is also libRcpp.so, which is<br>exactly the same as Rcpp.so. Disk space is cheap, but at the rate new<br>
features are being added to Rcpp this may become an issue at some point.<br></div></div></div></blockquote><div><br></div><div>Yes. Eventually what we would like is for R to take over the details as part of "LinkingTo : Rcpp" ... Maybe one day, until then the system works, so we dont want to change it.</div><div><br></div><br><blockquote type="cite"><div><div class="gmail_quote"><div>| Also, the dll is built anyway, so your client package is free to link against it, i.e. we provide |Rcpp:::LdFlags for convenience but if other packages want to use something else, that's ok too. Why |can't you just alter you configure/Makevars so that they link against the dll ?<br>
<br>Yes, of course, this can be implemented on the client side, and this leads to the<br>second reason for my post. I wanted to raise these issues to give you the opportunity<br>to add functionality that properly belongs to Rcpp, and that could conflict with client<br>
defs if they are added to Rcpp later.<br><br></div></div></div></blockquote><div><br></div>Sure<div><br><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Also, does#if defined(mingw32) || defined(WIN32) <br></blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">take care of windows 64 ?<br>
</blockquote><div><br>I think so, unless they add mingw64 and WIN64...<br><br>Dominick<br></div>
</div>
</div></blockquote><br></div><div>I prefer evidence rather than guesses, as i do not enjoy debugging on windows</div></body></html>