<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 10, 2015 at 10:29 AM, tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 09-09-2015, at 6:53 PM, David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
<br>
&gt; On Wed, Sep 09, 2015 at 11:17:08AM -0700, tim Rowledge wrote:<br>
&gt;&gt; I?m trying - and so far failing - to do what should surely be a very simple<br>
&gt;&gt; thing. This isn?t a new situation?  especially on unix.<br>
&gt;&gt;<br>
&gt;&gt; I have a single C file with just two functions. I have a matching H file.<br>
&gt;&gt; I want to make them into a dynamic library that I can call via FFI. This<br>
&gt;&gt; really shouldn?t be rocket science stuff!<br>
&gt;<br>
&gt; &lt;OT&gt;<br>
&gt; I assume there is some good reason that you would not do an end run<br>
&gt; around all that rocket science and just write a plugin?<br>
<br>
</span>Well I *did* originally point out that there was probably a really stupid mistake in my process and that is pretty much it. In my defence I was in the midst of FFI-ing to multiple external libraries for assorted Pi add-on doohickeys and getting somewhat inured to the idea.<br>
<br>
But I think I may re-do it as a plugin today, not least because it seems that the ARM ffi interface has a problem with returning floats; they come back as Character null. I may not be a great IEEE floating point standard expert but that doesn’t seem quite right.<br></blockquote><div><br></div><div>I&#39;m sure this can be fixed.  Have you talked to Doug McPherson?</div></div><div><br></div><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>