<div dir="ltr">See: <a href="http://bugs.freepascal.org/view.php?id=26454">http://bugs.freepascal.org/view.php?id=26454</a></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-08 13:08 GMT-03:00 Martin Waller <span dir="ltr"><<a href="mailto:Martin@the-wallers.net" target="_blank">Martin@the-wallers.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’ve been trying to build and load dynamically a simple shared library using Lazarus and the FPC. At the moment I have a simple one function shared library that compiles and builds cleanly and I have a couple of lines to try and load the library.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">It consistently returns a handle of zero. The associated error from GetLoadErrorStr is “No such file or directory”. Using objdump I can see that the library needs ld-linus-armhf.so.3 and that is in the /lib folder.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If I replace the library name with a shared library in the same folder generated using the C compiler then it loads fine.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The only different that I can see in that the Lazarus generated shared library has the soft-float ABI flag set and the C library has the hard-float ABI flag set!<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Does anyone have any clues as to why this can fail.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Martin<u></u><u></u></p></font></span></div></div><br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus-ide.org">Lazarus@lists.lazarus-ide.org</a><br>
<a href="http://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">http://lists.lazarus-ide.org/listinfo/lazarus</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br><a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a></div>
</div>