<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 14, 2017 at 12:03 PM, silvioprog <span dir="ltr"><<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 14, 2017 at 11:57 AM, silvioprog <span dir="ltr"><<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>></span> wrote:</div><div class="gmail_quote">[...]<span class="gmail-"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Anyway I've tried to use COFF objects on Windows, but I'm not sure if FPC supports that because it returns a "illegal COFF magic while reading some lib". :-/ (on Linux it works like a charm)</div></div></div></div></blockquote><div><br></div></span><div>Oh, sorry. It works on Windows too. I've used the wrong compiler version, because I have fpc 3 and trunk in same machine. ^^' I'm going to share the steps I've done ...</div></div></div></div></blockquote></div><div class="gmail_extra"><br></div><div>Done. Very small test in attachment to you check if your FPC version supports COFF objects.</div><div><br></div><div>The attached package has the file .a, it was built with:</div><div><br></div><div>$ gcc -c foo.c -o libfoo.o<br></div><div><div>$ ar rcs libfoo.a libfoo.o</div></div><div><br></div><div>Now, just open the list.lpr, it may compile and run properly. The test just prints "bar" at console.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>