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

Samium Gromoff _deepfire at feelingofgreen.ru
Thu Mar 20 08:50:53 UTC 2008


At Wed, 19 Mar 2008 13:20:51 +0100,
Juan Jose Garcia-Ripoll wrote:
> 
> 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().

Thanks, that worked! (But the function was read_VV)

regards, Samium Gromoff




More information about the ecl-devel mailing list