usenet helps
While I was trying to dig out how to play with lisp, especially how to create an executable from it, I came across this message posted to c.l.l:
http://groups.google.com/group/comp.lang.lisp/msg/a8ffbb6d53f6b3db
pretty much what I want
I’ve managed to created a executable on my Windows box and it runs just fine, well, with some tweaks, and actually a follow up describe the Windows dll problem:
http://groups.google.com/group/comp.lang.lisp/msg/71544781ad46b5c3
5 Comments
Other Links to this Post
RSS feed for comments on this post. TrackBack URI
By Hang, 2009-07-03 @ 12:29
Hmmm … I guess I’d better post full command here, first, finish what you want to do, such as hello world:
(defun main () (format t “~%Hello World!~%”))
then save an executable image:
(ext:saveinitmem “hw” :quiet t :init-function (lambda () (main) (ext:quit)) :verbose t :norc t
ocumentation “This is a Common Lisp ‘hello world’ sample.” :executable t)
and that’s it.
By Hang, 2009-07-03 @ 12:31
well, smiley problem again.
By Hang, 2009-07-03 @ 14:07
I decided to add base directory under CLisp’s installation path to my own PATH variable so that I don’t have to worry about it during development time.
By Hang, 2009-07-05 @ 18:21
Forgot to mention – to let CLisp scan the asdf directory, recursively: (let’s see how much smiley will mess up this comment)
(dolist
(dir-candidate (directory #P”\\path\\to\asdf-registry\\**\\”))
(let ((asd-candidate (merge-pathnames “*.asd” dir-candidate)))
(when (directory asd-candidate)
(push dir-candidate asdf:*central-registry*))))
By Hang, 2009-07-05 @ 19:07
Actually, you can use “/” in case you don’t like c-style “\\”.