<div dir="ltr"><div>Oh, didn&#39;t know about the  (load &quot;libx.so&quot; (inlet &#39;init_func ....))</div><div><br></div><div>My question&#39;s focus was the &quot;How one should provide an s7 environment via a C API&quot;</div><div>What I was meaning with this that it&#39;d be nice to have some guidelines for people making bindings.</div><div>But since there&#39;s the init_func there&#39;s no need for that: one could call their entrypoint however they wish.</div><div><br></div><div>One minor request here: the possibility to have &#39;init_args apart from the &#39;init_func:</div><div>If init_args are provided the init_func should be called with s7_scheme* and s7_pointer arguments.</div><div>That could enable for example passing an environment where the bindings should be added, and so on.<br></div><div><br></div><div>Also some other  points:</div><div>- WITH_C_LOADER doesn&#39;t work in Windows</div><div>- also doesn&#39;t work if compiling with mingw (should check for __MINGW32__ compiler flag)</div><div>  stumbled on the problem that couldn&#39;t find &lt;dlfcn.h&gt; which is needed when WITH_C_LOADER (which is set to true #if WITH_GCC, which in turn checks for __GNUC__ .. which is set in mingw)</div><div><br></div><div>If windows is of no priority I could take a look into it myself at some point (not soon however, I&#39;m in the process of moving)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 22 Oct 2020 at 15:01, &lt;<a href="mailto:bil@ccrma.stanford.edu">bil@ccrma.stanford.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To expand slightly on Woody&#39;s response, what do you need<br>
from s7 beyond s7_load_with_environment and s7_autoload?<br>
<br>
</blockquote></div>