[Ecls-list] Non- c:build-program composition question.

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Wed Mar 19 12:20:51 UTC 2008


On Wed, Mar 19, 2008 at 9:00 AM, Samium Gromoff
<_deepfire at feelingofgreen.ru> wrote:
>  Is it possible to compose by simple linking:
>
>   1. a C program linked with libecl and doing proper init (i.e. cl_boot()),
>   2. the product of c:build-static-library, itself in turn produced
>      from individual lisp files compile-file'd with :system-p t
>
>  so that the C program can access Lisp objects defined in the second part
>  by the means of si_safe_eval/cl_eval?

It is possible, but you will have to initialize the library by hand.
The static library will have an entry point called, normally,
init_lib_whatever. Given you know this, you can initialize it by
calling read_vv(OBJNULL, init_lib_whatever) from your program, _after_
you invoked cl_boot().

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