[Ecls-list] Getting "hello world" going

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Sat Sep 29 13:34:34 UTC 2007


2007/8/24, Mark Carter <mcturra2000 at yahoo.co.uk>:
> Getting closer. I now have ecl1.lisp: [...]
>
> I also have ecl2.c:[
>...]
>   const char *lisp_code = "(progn (load \"ec1.fas\") (say-hello))";
>[...]
>
> which I compile using:
>     gcc -lelc ecl2.c
>
> When I run a.out, though, it doesn't print "hello world" as I would expect;
> although it now doesn't crash. I'm using Linux. Should I be doing things in
> a different way?

The error is pretty simple to spot and it is not ECL's ;-)
"ec1.fas" should be replaced with "ecl1.lisp" or "ecl1.fas". It works
ok in my computer then.

Juanjo

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list