From: Andy Wingo <wingo@pobox.com>
To: Michael Ellis <michael.f.ellis@gmail.com>
Cc: bug-guile@gnu.org
Subject: Re: FFI on OS X?
Date: Wed, 02 Mar 2011 22:22:12 +0100 [thread overview]
Message-ID: <m3oc5ti5ff.fsf@unquote.localdomain> (raw)
In-Reply-To: <AANLkTin1oDrzx9-KxvU7DGwwLxZrRbRHs8+9ygBCwD23@mail.gmail.com> (Michael Ellis's message of "Wed, 2 Mar 2011 15:07:15 -0500")
On Wed 02 Mar 2011 21:07, Michael Ellis <michael.f.ellis@gmail.com> 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"
What if you leave off the suffix?
scheme@(guile-user)> (use-modules (system foreign))
scheme@(guile-user)> (dynamic-link "libm")
$1 = #<dynamic-object "libm">
Guile uses libltdl, which does this sort of thing.
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-03-02 21:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3oc5ti5ff.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=bug-guile@gnu.org \
--cc=michael.f.ellis@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).