Lisp HUG Maillist Archive

Mac OSX error while loading shared library

Folks,

/opt/local/lib/libstream.0.0.0.dylib: Mach-O dynamically linked  
shared library ppc

What does this mean:

CL-USER 6 > (load "/opt/local/lib/libstream.dylib")
; Loading text file /opt/local/lib/libstream.0.0.0.dylib

Error: The variable ÞÍÚÎl 0.
   8 Restart top-level loop.

This is a C++ library built with libtool, etc.

     Thanks, Joel

--
http://wagerlabs.com/uptick





Re: Mac OSX error while loading shared library

On Sun, 31 Jul 2005 22:03:11 +0200, Joel Reymont <joelr1@gmail.com> wrote:

> Folks,
>
> /opt/local/lib/libstream.0.0.0.dylib: Mach-O dynamically linked
> shared library ppc
>
> What does this mean:
>
> CL-USER 6 > (load "/opt/local/lib/libstream.dylib")
> ; Loading text file /opt/local/lib/libstream.0.0.0.dylib
>
> Error: The variable ÞÍÚÎl 0.
>    8 Restart top-level loop.
>
> This is a C++ library built with libtool, etc.

On AllegroCL you load C/C++ with LOAD, on LispWorks you don't.  See
the documentation for FLI:REGISTER-MODULE.

Cheers,
Edi.


Re: Mac OSX error while loading shared library

On Sun, 31 Jul 2005 22:31:36 +0200, Joel Reymont <joelr1@gmail.com> wrote:

> I used to be able to load a dynamic library with load in the
> previous version of LispWorks

I'm surprised.

> What is the best way to pass strings from Lisp into foreign
> functions that expect a char*?

There is no "best way."  It very much depends on what the foreign
function does with the string, whether you know its size in advance,
and several other factors.  Here's a good starting point:

  <http://www.lispworks.com/documentation/lw445/FLI/html/fli-42.htm>

Cheers,
Edi.


Updated at: 2020-12-10 08:51 UTC