how does one compile a clisp program which uses cl-ppcre?

本秂侑毒 提交于 2019-12-05 09:51:10

If you compile some file which uses a package like (cl-ppcre:bar ...) then you need make sure that the package exists.

Compiling a statement like (asdf:load-system :cl-ppcre) does not cause loading the system at compile-time. Thus the package definition is also not loaded and executed. The compiler generates code for this statement, so that it only executes at load-time.

Either you load the system some way before you compile the file or you use

(eval-when (:compile-toplevel :load-toplevel :execute)
  (asdf:load-system :cl-ppcre))

in the file to make sure that it is loaded into the compile-time environment.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!