On Wed 02 Mar 2011 21:07, Michael Ellis <michael.f.el...@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/

Reply via email to