About save-lisp-and-die in Windows ?
Posted: Wed Oct 15, 2008 9:33 pm
I'm learning to make a Win32 executable using SBCL's save-lisp-and die from this article .
On that articles, the author enters the code directly while running SBCL, and I'm wondering how to do that from file.
My first attempt is this code : test.lisp
The exe is created by :sb-ext:save-lisp-and-die "test.exe" :executable t :toplevel 'hello. But when I run it, the output is pretty strange :
On that articles, the author enters the code directly while running SBCL, and I'm wondering how to do that from file.
My first attempt is this code : test.lisp
Code: Select all
(defun hello()
(format t "Hello, (cruel) world!~%"))
compared to the output from the article :This is experimental prerelease support for the Windows platform: use
at your own risk. "Your Kitten of Death awaits!"
Hello, (cruel) world!
debugger invoked on a TYPE-ERROR: The value NIL is not of type (SIGNED-BYTE 32).
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
(no restarts: If you didn't do this on purpose, please report it as a bug.)
(SB-UNIX:UNIX-EXIT NIL)[:EXTERNAL]
0]
Where is my mistake ? And BTW, how can I suppress the "This is experimental prerelease ..." message, so the output would be just "Hello world!" ?This is experimental prerelease support for the Windows platform: use
at your own risk. "Your Kitten of Death awaits!"
Hello world!