<div dir="ltr"><div><span style="white-space:pre-wrap">I think you may have typed "W" one to many times in this Makefile and you're adding them where they don't belong. I detect a rogue W in the name madgwick. </span></div><div><span style="white-space:pre-wrap"><br></span></div><span style="white-space:pre-wrap">        </span>@$(CC) -shared -Wl,-soname,libmadgwickIMU.so -o lib--------->w<---------madgwickIMU.so.$(VERSION) -lm $(OBJ)<br><div><br></div><div>Also, when I compile on this Ubuntu 15.04 I get an error. [1] </div><div><br></div><div>FWIW,</div><div>Chris </div><div><br></div><div>[1]</div><div><div><br></div><div>$ make</div><div>[Compile] MadgwickAHRS.c</div><div>MadgwickAHRS.c: In function ‘invSqrt’:</div><div>MadgwickAHRS.c:218:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]</div><div> long i = *(long*)&y;</div><div> ^</div><div>MadgwickAHRS.c:220:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]</div><div> y = *(float*)&i;</div><div> ^</div><div>[Link (Dynamic)]</div></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 9, 2015 at 2:55 PM, tim Rowledge <span dir="ltr"><<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>></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 11:44 AM, Chris Cunningham <<a href="mailto:cunningham.cb@gmail.com">cunningham.cb@gmail.com</a>> wrote:<br>
> ok. Does FFI know to prepend the lib and postpend the .so in Unix for you? I'm curious.<br>
<br>
</span>Well, it does for other libraries; for example calling libwiringPi.so you use #<cdecl: void ‘foo’ (int) module: ‘wiringPi’><br>
<span class=""><br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
</span>Strange OpCodes: SNARF: System Normalize And Reset Flags<br>
<br>
<br>
<br>
</blockquote></div><br></div>