On Mon, Dec 21, 2009 at 4:52 PM, Elliott Slaughter <elliottslaughter@gmail.com> wrote:
Sure.On Mon, Dec 21, 2009 at 1:26 PM, Luís Oliveira <luismbo@gmail.com> wrote:On Mon, Dec 21, 2009 at 8:55 PM, Elliott SlaughterCan you come up with a minimal test case? Something using e.g.
<elliottslaughter@gmail.com> wrote:
> I'm believe I'm seeing this issue again, but none of my previous workarounds
> seem to be working. I am using SBCL 1.0.29 on Windows XP, and when I save
> and run an executable, I keep getting undefined alien errors. I have tried
> both the :dont-save t hack that I initially suggested, and have tried
> calling (close-foreign-library ...) on all of the open libraries before
> saving the executable, and nothing helps.
libtest.dll would be nice.For this test, I used SDL.dll from http://www.libsdl.org/release/SDL-1.2.14-win32.zip .$ cat test.lisp(asdf:oos 'asdf:load-op :cffi)(cffi:define-foreign-library sdl(:windows "SDL.dll"))(cffi:use-foreign-library sdl)(cffi:defcfun ("SDL_Linked_Version" SDL-Linked-Version) :pointer)(defun main () (format t "does it work?~%") (quit))(cffi:close-foreign-library 'sdl)(save-lisp-and-die #+windows "main.exe" #-windows "main":toplevel #'main :executable t)