Jul 032009
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 Responses to “usenet helps”
Sorry, the comment form is closed at this time.
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 :documentation “This is a Common Lisp ‘hello world’ sample.” :executable t)
and that’s it.
well, smiley problem again.
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.
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*))))
Actually, you can use “/” in case you don’t like c-style “\\”. ๐