I’ve just started learning Lisp and I can’t figure out how to compile and link lisp code to an executable.
I’m using clisp and clisp -c produces two files:
- .fas
- .lib
What do I do next to get an executable?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I was actually trying to do this today, and I found typing this into the CLisp REPL worked:
where main is the name of the function you want to call when the program launches,
:QUIET tsuppresses the startup banner, and:EXECUTABLE tmakes a native executable.It can also be useful to call
at the end of your main function in order to stop the user from getting an interactive lisp prompt when the program is done.
EDIT: Reading the documentation, you may also want to add
:NORC t(read link). This suppresses loading the RC file (for example,~/.clisprc.lisp).