guile-devel
[Top][All Lists]
Advanced

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

Re: FFI on OS X?


From: Ludovic Courtès
Subject: Re: FFI on OS X?
Date: Wed, 02 Mar 2011 21:44:16 +0100
User-agent: Gnus/5.110013 (No Gnus v0.13) Emacs/23.2 (gnu/linux)

Hi,

Michael Ellis <address@hidden> writes:

> 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")

Thanks,
Ludo’.



reply via email to

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