[Ecls-list] CVS ECL omits libraries

Goffioul Michael goffioul at imec.be
Thu Jun 30 01:04:51 UTC 2005


> Hello,
> 
> 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.
> > ^D
> 
> 
> It seems that the GCC command misses the ecl library? Load-foreign-
> library does not seem to work either. :-/

FFI:LOAD-FOREIGN-LIBRARY is just a hack that adapt compilation flags
to include the library. I tested it (not much) under my MSVC setup,
but it probably needs some adaptation for other systems.

Michael.




More information about the ecl-devel mailing list