<p>Am 17.08.2017 15:49 schrieb "Graeme Geldenhuys" <<a href="mailto:mailinglists@geldenhuys.co.uk">mailinglists@geldenhuys.co.uk</a>>:<br>
><br>
> On 2017-08-16 18:14, Sven Barth via fpc-pascal wrote:<br>
>><br>
>> As you can see the program will work correctly as long as the<br>
>> libX11.so.6 file exists (even though that is a symlink itself, but the<br>
>> X11 project guarantees that different libX11.so.6.x.y are compatible to<br>
>> eachother), because the linker picks the SONAME that is set inside the<br>
>> binary. And the libX11.so.6 symlink is part of the non-devel package.<br>
><br>
><br>
> Sven, now here is an interesting problem regarding the way FPC (or Object Pascal in general) works with C based libraries. Martin pointed this out in another mailing list, and he gave me permission to forward it here. What is your answer or recommendation to this problem?</p>
<p>Write in your application's readme which versions it requires. It might be true that the devel packages contain the C-headers, but there might nevertheless be failures if the applications<br>
is programmed against the interface of the older v1 library (maybe they changed the memory management for v2 and the problem will only manifest at runtime).</p>
<p>Regards,<br>
Sven</p>