[Top][All Lists]

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

FFI on OS X?

From: Michael Ellis
Subject: FFI on OS X?
Date: Wed, 2 Mar 2011 15:07:15 -0500

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"

The same library can be loaded and its functions are available with
python ctypes, e.g.

>>> libm=CDLL("/usr/lib/libm.dylib")
>>> libm
<CDLL '/usr/lib/libm.dylib', handle 7fff5fc43d68 at 1004dfc50>
>>> libm.j0
<_FuncPtr object at 0x100599d50>

What am I doing wrong?


reply via email to

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