<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2016-09-18 2:31 GMT+02:00 Benjamin Rosseaux <span dir="ltr"><<a href="mailto:benjamin@rosseaux.de" target="_blank">benjamin@rosseaux.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>i've noticed a weakness of the FPC internal linker at static-linking .a libraries on the Win64 target, which're generated by GCC newer than 4.8.1, due to the new refptr.* and .refptr.* symbols-can-be-multiple-<wbr>defined stuff (inside one single .a library file), which was introduced in newer GCC versions. </div></blockquote></div><br>I don't have the real patch for this yet but I have my inner tool to rename all duplicated symbols for statically linking FPC with C++ code (I have improved cppclass type). My tool uses objconv : <a href="http://www.agner.org/optimize/#objconv">http://www.agner.org/optimize/#objconv</a> . Rename for symbols is simple with few commands for objconv ("-dfhs" to list symbols and "-nr" to rename).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Anyway your temporary patch might be better for statically <span style="font-size:12.8px">linking with SDL2...</span><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>