3

我正在尝试学习如何使用 Common-Lisp 的 asdf,并且我有以下代码:

(asdf:defsystem example
    :serial t
    :components ((:file "first")
                 (:file "second")))

但是,我不断收到错误消息:

Condition of type: SIMPLE-ERROR
Invalid relative pathname #P"first.lisp" for component ("example" "first")

我在与这两个 Lisp 文件相同的目录中启动 repl,但我不明白为什么会出现错误。我错过了什么?我在 Windows 上使用 ECL

4

1 回答 1

6

ASDF 使用*load-pathname**load-truename*解析系统组件的完整路径。如果您(asdf:defsystem ...)在 REPL 上输入表单,则不会设置这些变量。将defsystem表单写入文件,然后像(load "example.asd").

于 2015-12-04T04:47:43.007 回答