<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks. I'm happy to announce a sqld-psql driver based on the FFI then.<br>
One can download it from PLaneT. <br>
<br>
--Hans<br>
<br>
<br>
Matthew Flatt schreef:
<blockquote cite="mid:20070530214840.07E416500C2@mail-svr1.cs.utah.edu"
type="cite">
<pre wrap="">At Wed, 30 May 2007 21:48:27 +0200, Hans Oesterholt-Dijkema wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Does that work on windoze?
</pre>
</blockquote>
<pre wrap=""><!---->
Yes.
(You're right to be suspicious, because shared-library symbol lookup
works differently under Windows. But we were able to make `ffi-lib' and
`get-ffi-obj' behave more the same.)
Matthew
</pre>
<blockquote type="cite">
<pre wrap="">Jim Meier schreef:
</pre>
<blockquote type="cite">
<pre wrap="">You can load the "current" program symbol table with ffi by giving #f
as the library name:
(define libc (ffi-lib #f))
So to grab the abort() function, for example,
(define abort (get-ffi-obj "abort" libc (_fun -> _void))
Good Luck,
-J
On 30-May-07, at 1:31 PM, Hans Oesterholt-Dijkema wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear All,
If I need some function from libc, how can I
load the right library with ffi-lib?
/usr/lib/libc.so tends to be some LD script:
e.g. (for a recent debian installation)
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )
What to do?
--Hans
_________________________________________________
For list-related administrative tasks:
<a class="moz-txt-link-freetext" href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">_________________________________________________
For list-related administrative tasks:
<a class="moz-txt-link-freetext" href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>