Loading code from PCL with quicklisp
Posted: Fri Apr 04, 2014 7:29 am
Hello everybody,
As a beginner with Common Lisp (and programming), I am having trouble understanding what I think are basic concepts of quicklisp/ASDF. I am trying to load some code from Practical Common Lisp (chapter 3, "simple database") in my environment. I use Emacs + SLIME + SBCL + quicklisp. I copied the files from chapter 3 ('chapter-3.asd', 'packages.lisp', 'simple-database.asd' and 'simple-database.lisp') in my quicklisp local-projects directory. At the SLIME REPL, I type this:
And I get the following output:
After doing this, I thought I could have access to the functions from simple-database.lisp at the REPL, but the REPL tells me that all the functions I try from simple-database.lisp are undefined. I also tried this, as written in the README file from PCL:
Am I missing some fundamental concept about quicklisp or ASDF? Should I be able to have access to the functions from simple-database.lisp file after doing this?
Thank you very much for your help,
Beltxarga
As a beginner with Common Lisp (and programming), I am having trouble understanding what I think are basic concepts of quicklisp/ASDF. I am trying to load some code from Practical Common Lisp (chapter 3, "simple database") in my environment. I use Emacs + SLIME + SBCL + quicklisp. I copied the files from chapter 3 ('chapter-3.asd', 'packages.lisp', 'simple-database.asd' and 'simple-database.lisp') in my quicklisp local-projects directory. At the SLIME REPL, I type this:
Code: Select all
(ql:quickload :simple-database)
Code: Select all
To load "simple-database":
Load 1 ASDF system:
simple-database
; Loading "simple-database"
(:SIMPLE-DATABASE)
Code: Select all
(asdf:oos 'asdf:load-op :simple-database)
Thank you very much for your help,
Beltxarga