[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?
Thanks,
Mike
- FFI on OS X?,
Michael Ellis <=
- Re: FFI on OS X?, Hans Aberg, 2011/03/02
- Re: FFI on OS X?, Andy Wingo, 2011/03/02
- Re: FFI on OS X?, Hans Aberg, 2011/03/02
- Re: FFI on OS X?, Andy Wingo, 2011/03/03
- Re: FFI on OS X?, Hans Aberg, 2011/03/03
- Re: FFI on OS X?, Andreas Rottmann, 2011/03/03
- Re: FFI on OS X?, Michael Ellis, 2011/03/03
- Re: FFI on OS X?, Andy Wingo, 2011/03/03