guile-devel
[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 22:15:08 +0100

On 2 Mar 2011, at 21:44, Ludovic Courtès wrote:

>> 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"
> 
> You should omit the extension, which will be automatically inferred by
> Guile (actually ltdl) depending on the system:
> 
>  (dynamic-link "/usr/lib/libm")
> 
> or:
> 
>  (dynamic-link "libm")

None of those work - I checked and rechecked that. Making a soft link ending on 
".so", and it works fine. I have seen this before in the Bessel function 
example.





reply via email to

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