我正在尝试学习如何使用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
ASDF使用*load-pathname*
或*load-truename*
解析到系统组件的完整路径。如果您(asdf:defsystem ...)
在REPL上输入表格,则不会设置这些变量。将defsystem
表单写入文件,然后像一样加载(load "example.asd")
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句