<div class="gmail_quote">On Sun, Jun 10, 2012 at 8:32 PM, Antonio Bonifati <span dir="ltr"><<a href="mailto:antonio.bonifati@gmail.com" target="_blank">antonio.bonifati@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>All works, but I have noticed that along with the .EXE file I have to distribute ucd.dat, ecl.dll and sockets.fas (the latter because my program uses sockets through usocket) and they have to be in the same directory, otherwise the executable won't find them and doesn't run. Is there a way to make a real stand-alone .EXE file? </div>

</blockquote><div><br></div><div>You have found _different_ problems. One is that sockets.fas is not linked in your program because you probably use (REQUIRE :sockets). Why not list it as a dependency on your ASDF file?</div>

<div><br></div><div>The other one is the DLL issue, which arises because (as some other people asked here in the mailing list) ECL does not have support for building statically linked executables in Windows. It is not impossible: the code is in the core, but the Makefile has not been adapted.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I do not mind how big it is. Alternatively, how can I tell Lisp to load all dependency files from another directory than the one the .exe file is found? (e.g. a subdir)</div>

</blockquote><div><br></div><div>Change the system directory using setenv("ECLDIR","whatever/path/you/want") before calling cl_boot().</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>BTW where is the documentation for the socket library that comes with ECL? I would rather use that directly rather than usocket, because the latter seems to be unstable. My server often hangs and I get no error message! This happens both in Linux and in Windows, but more often in Windows.</div>

</blockquote></div><br>This is just SBCL's sockets, ported to ECL. I do not know whether they provide some documentation.<div><br></div><div>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><br>
</div>