[Ecls-list] c:build-program and -eval

Gabriel Dos Reis gdr at cs.tamu.edu
Sat Mar 10 09:45:33 UTC 2007

"Juan Jose Garcia-Ripoll" <jjgarcia at users.sourceforge.net> writes:

| Hi Gabriel,
| you are missing an important step:
|     (require 'cmp)

Dear Juan,

  That was fast!  Many thanks.

| The compiler is not loaded by default, to save memory. Your example
| then should probably read
| % ecl -eval '(progn (require 'cmp) (c::build-progam "hello.lisp"
| :lisp-file (quote ("hello.o"))) (quit))'

Requiring "cmp" indeed does the trick.  However, I suspect there might
be a bug:  The form:

% ecl -eval '(progn (require (quote cmp)) (c:build-program "hello" :lisp-files (quote ("hello.o"))) (quit))' 

produces the same error as before.  However, if I split the -eval
argument into two chunks, first requiring "cmp", then building the
program, it appears to work:

% ecl -eval '(require (quote cmp))' -eval '(progn (c:build-program "hello" :lisp-files (quote ("hello.o"))) (quit))'


-- Gaby

More information about the ecl-devel mailing list