[Ecls-list] Two Questions...

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Fri Oct 23 07:01:27 UTC 2009


(require 'asdf)
(require 'external-program)

(defpackage :test
  (:use :cl :asdf :external-program)
  (:export #:main))

(in-package :test)

(defun main ()
  (run "echo" (list "hello world")))

You cannot use this structure in your compiled code. If you need
EXTERNAL-PROGRAM, and use the build process with

(defsystem #:test
  :Name "test"
  :Description "a test"
  :Author "Brit Butler <redline6561 at gmail.com>"
  :Version "0.0.2"
  :depends-on (:external-program)
  :serial t
  :components ((:file "echo")))

then EXTERNAL-PROGRAM will be included in your program. If you use
monoithinc builds nothing will be compiled as a FASL and thus your
program will not find it, but ECL will automatically include
EXTERNAL-PROGRAMS's compiled filed (and all other required files as
per ASDF) _before_ your main file test.lisp and execute them.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list