[Ecls-list] Compileing example

Goffioul Michael goffioul at imec.be
Fri Jun 16 07:54:57 UTC 2006


> When I'm compileing the example from
> http://sourceforge.net/mailarchive/message.php?msg_id=7405209
> 
> I get an error:
> 
> gcc -Wall -o test test.c -lecl -L/usr/lib/ecl -I/usr/lib/ecl/
> 
> test.c: In function 'main':
> test.c:32: warning: implicit declaration of function 'basename'
> test.c:32: warning: format '%s' expects type 'char *', but 
> argument 2 has type 'int'
> test.c:66: error: too few arguments to function 'si_safe_eval'
> 
> What is it, and how can it be fixed?

si::safe-eval (see src/lsp/top.lsp) needs to be called with 3
arguments: (form env err-value). In C form, this means for instance

si_safe_eval(4, bytecode, Cnil, c_string_to_object("ERROR"));

Michael.




More information about the ecl-devel mailing list