<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="font-family: 'Segoe UI',Frutiger,'Frutiger Linotype','Dejavu Sans','Helvetica Neue',Arial,sans-serif; font-size: 14px;">
<div class="hiri-body-wrapper" contenteditable="true">
<div>Mr Schottstaedt,<br>
<br>
Thanks for the advice, and for this great interpreter! using a lambda for autoloading native libraries works well, and I'm using the attached patch to search the load path for .so files; i've tested it a bit and it seems to work. The patch also adds the current
 directory &quot;.&quot; as an implicit entry to the load path; this makes things a bit simpler, and it's easy to override in scheme if necessary.<br>
<br>
Good luck and thanks again,<br>
Woody Douglass<br>
&nbsp;</div>
</div>
&nbsp;
<div class="hiri-extra" contenteditable="false">
<p>On 2019-07-11 17:40:43-04:00 bil@ccrma.Stanford.EDU wrote:</p>
<blockquote style="padding-left:10px; border-left:1px solid #ccc; margin:0">
<div>
<pre class="hiri-plaintext-quote">Now I read the code... the autoloader can't work
with just the *.so library name (as opposed to a function)
because it can't tell what
the init function's name is.  You could do this with
s7_load_with_environment if it were extended to handle
*.so files, because you can pass the init function
name in the environment argument, or you could call
the init function explicitly after loading, but autoload happens
at the point where an undefined name is encountered,
so you need to pass a function something like
(lambda (e) (load &quot;libc.so&quot; (inlet 'init_func 'init)))


</pre>
</div>
</blockquote>
</div>
</body>
</html>