bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FFI on OS X?


From: Hans Aberg
Subject: Re: FFI on OS X?
Date: Wed, 2 Mar 2011 21:23:43 +0100

On 2 Mar 2011, at 21:07, Michael Ellis wrote:

> Trying to follow the examples in section 6.20.6 in the manual  I get
> the following.
> 
> scheme@(guile-user)> (define libm (dynamic-link "/usr/lib/libm.dylib"))
> ERROR: In procedure dynamic-link: file: "/usr/lib/libm.dylib",
> message: "file not found"
...
> What am I doing wrong?

Guile, or what it uses to load libraries, assumes that a dynamic library ends 
in something else than ".dylib". Make a soft link ('ln -s') ending in ".so", 
and load this instead, and it will work.

  Hans





reply via email to

[Prev in Thread] Current Thread [Next in Thread]