compilation of source files fails:
> cat foo.lisp
(defun foo () 1)
> ecl -compile foo.lisp
;;; Loading #P"/usr/local/lib/ecl/cmp.fas"
;;; Loading #P"/usr/local/lib/ecl/sysfun.lsp"
;;; Compiling foo.lisp.
;;; Compiling (DEFUN FOO ...).
;;; End of Pass 1.
;;; Emitting code for FOO.
;;; Invoking external command: gcc -I../include -g -O2 -fPIC -fstrict-
aliasing -Dfreebsd -O "-I/usr/local/lib/ecl//h" -w -c "foo.c" -o
"foo.o" ;;; Calling the C compiler... ECL (Embeddable Common-Lisp) 0.9g
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya Copyright (C) 1993
Giuseppe Attardi Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help. Top level.
It seems that the GCC command misses the ecl library? Load-foreign-
library does not seem to work either. :-/
LISP has survived for 21 years because it is an approximate local
optimum in the space of programming languages. - John McCarthy (1980)
From: Juan Jose Garcia Ripoll <lisp@ar...> - 2005-06-30 08:24:52
Julian Stecklina wrote:
>compilation of source files fails:
>(defun foo () 1)
>>ecl -compile foo.lisp
>It seems that the GCC command misses the ecl library?
No, the problem is that the -compile option was broken by a recent ANSI
compatibility fix in COMPILE-FILE. I have fixed this.
>Load-foreign-library does not seem to work either. :-/
The problem with ECL's current FFI is that it cannot create interfaces
to foreign functions on the fly. Hence, LOAD-FOREIGN-LIBRARY does not
make any sense at all: you have to link your compiled files against the
library from which you want to obtain the symbols.