Embeddable Common-Lisp asdf:defsystem返回无效的相对路径名

jef*_*ime 2 windows common-lisp asdf ecl

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

(asdf:defsystem example
    :serial t
    :components ((:file "first")
                 (:file "second")))
Run Code Online (Sandbox Code Playgroud)

但是,我一直收到错误:

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

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

jla*_*ahd 5

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