<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 14, 2015 at 11:02 AM, ADTEC (Pty) Ltd <span dir="ltr"><<a href="mailto:adtec@adtec.co.za" target="_blank">adtec@adtec.co.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Anyone else had this problem?<br></blockquote><div>It's not a problem it's rather a common convention. <br></div><div><br>Windows platform is using stdcall for dynamic libraries.<br></div><div>Unix platforms (OSX included) is using cdecl.<br><br></div><div>An example OpenGL binding in FPC are working fine this way.<br></div><div><br></div><div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Also, where do you put the library? I've been copying it to /usr/lib<br>
to get it to work. How do I store it in the MacOS or Resources<br>
directory of the .app and have it found at run-time?<br></blockquote></div><br></div><div class="gmail_extra">Try to put the library into:<br></div><div class="gmail_extra">youprogram.app/Contents/Frameworks/<br></div><div class="gmail_extra"><br><a href="https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html">https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html</a><br><br></div><div class="gmail_extra">thanks,<br></div><div class="gmail_extra">Dmitry<br></div></div>