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

Dietrich Bollmann dietrich at formgames.org
Mon Jun 24 12:34:54 UTC 2013


Hi again,

I am still struggling with embedding ECL in Rhino3D.

Today I got the following error:

  fatal error C1189: #error :  Rhino 4 and Rhino 4 plug-ins MUST
dyanamically link MFC.

...so linking ECL statically will not work.

(I am using Rhino 5, but the error message seems to not have been updated.)

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().
>

If I wanted to use a shared library rather than a static one, how would I
have to change the example?

Using :shared-library at the place of :static-library in the asdf:make-build
command seems not to be enough - at least not under Windows.

Thanks for your help,

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130624/5425bf5a/attachment.html>


More information about the ecl-devel mailing list