unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* FFI on OS X?
@ 2011-03-02 20:07 Michael Ellis
  2011-03-02 20:23 ` Hans Aberg
  2011-03-02 21:22 ` Andy Wingo
  0 siblings, 2 replies; 9+ messages in thread
From: Michael Ellis @ 2011-03-02 20:07 UTC (permalink / raw)
  To: bug-guile

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?

Thanks,
Mike



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-03 19:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 20:07 FFI on OS X? Michael Ellis
2011-03-02 20:23 ` Hans Aberg
2011-03-02 21:22 ` Andy Wingo
2011-03-02 22:15   ` Hans Aberg
2011-03-03  9:25     ` Andy Wingo
2011-03-03  9:48       ` Hans Aberg
2011-03-03 14:36         ` Andreas Rottmann
2011-03-03 16:53           ` Michael Ellis
2011-03-03 19:49             ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).