When I use C++, I can link a library by using a .a file or a .so file in my Makefile.
But how can I load a library in Common Lisp?
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.
It is a bit unclear what you mean by “load a library in Common Lisp”.
It could mean “how do I load a Common Lisp library” and in that case, the answer is typically “by referencing your package in the ASDF system definition for your program it is automatically loaded when your system is loaded”.
It could mean “how do I load a library written in another language” and in that case, the answer is probably “by using CFFI”. That probably requires writing some glue code around data passed to or from the library, to make it more pleasant to use from Common Lisp, though.