[Ecls-list] Example about building / loading ECL libraries

Juan Jose Garcia-Ripoll juanjose.garciaripoll at gmail.com
Wed May 29 14:40:57 UTC 2013


add -eval '(ext:install-c-compiler)' or similar (clause copied from the
ANNOUNCEMENT) before ASDF. You are using the bytecodes compiler by default
and this does not allow building object files


On Wed, May 29, 2013 at 3:22 PM, Dietrich Bollmann
<dietrich at formgames.org>wrote:

> Hi Juanjo,
>
> Thank you very much for this example!  Nothing is more helpful than some
> working code to start from!
>
> On my windows installation, however, it still refuses to work:
>
> ecl.exe -norc \
> >   -eval '(require :asdf)' \
> >   -eval '(push "./" asdf:*central-registry*)' \
> >   -eval '(asdf:make-build :hello-lisp :type :static-library :move-here
> "./hello-lisp.lib")' \
> >   -eval '(quit)'
> ;;; Loading
> #P"C:/Users/dietrich/home/cs/lang/lisp/ecl/64/git/install/asdf.fas"
> An error occurred during initialization:
> In COMPILE-FILE-PATHNAME, the type OBJECT is unsupported..
>
> Any idea what is going wrong?
>
> Thanks again,
>
> Dietrich
>
>
> On Wed, May 29, 2013 at 6:10 AM, Juan Jose Garcia-Ripoll <
> juanjose.garciaripoll at gmail.com> wrote:
>
>> I just cooked a trivial example
>>    https://sourceforge.net/p/ecls/ecl/ci/master/tree/examples/embed/
>>
>> The example shows how to build a trivial Common Lisp package, compile it
>> into a statically linked library using ECL and invoke it from a C program
>> with which it is linked.
>>
>> It should be trivial to generalize it to using shared libraries and
>> dlopen().
>>
>> Best,
>>
>> Juanjo
>>
>> --
>> Instituto de Física Fundamental, CSIC
>> c/ Serrano, 113b, Madrid 28006 (Spain)
>> http://juanjose.garciaripoll.googlepages.com
>>
>
>


-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130529/09c065e1/attachment.html>


More information about the ecl-devel mailing list