<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 19, 2013 at 12:40 PM, Dietrich Bollmann <span dir="ltr"><<a href="mailto:dietrich@formgames.org" target="_blank">dietrich@formgames.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>In ecl/src/configure I found the option <br></div><div><br></div><div><div> --with-dffi dynamic foreign function interface</div>
<div> (system|included|auto|no, default=AUTO if libffi</div><div> available)</div></div><div><br></div><div>But I couldn't find anything similar in the windows ecl/msvc/Makefile.</div>
<div><br></div><div>How do I compile the 64 bit version of ECL under Windows with dynamic foreign function support?</div><div></div></blockquote></div><br>Currently ECL does not support this in the original sources because FFI has evolved into a very complicated set of sources that cannot be built with Microsoft's compilers: it demands mingw and other tools.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">This may have changed recently, I do not follow libffi so closely, but, as I said, the problem is not that ECL cannot be linked against libffi using Visual Studio, it is just that I do not know how to do this integration smoothly without further dependencies.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">A more reasonable alternative that works on all ports (and is much faster) would be to compile your code before loading it: it will just work even without dffi. The FFI is only needed to create the wrappers, but once they have been compiled they work regardless of the underlying implementation.<br>
<br>Juanjo<br clear="all"><div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a>
</div></div>