<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Having stumbled over this problem last year, I now have a very
simple rule (and which seems to work).</p>
<p>If you are linking with an external static library (e.g.
libssl.a) then you omit the external library name on each function
call, but must include a $LINKLIB e.g. ($LINKLIB ssl.a}.</p>
<p>If you are linking with an external shared library (e.g.
libssl-3-x64.dll) then you must explicitly provide the external
library name on each function call so that the loader knows which
library to look in. Note. No $LINKLIB directive.<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 05/01/2025 11:49, Hairy Pixels via
fpc-pascal wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGsUGtm+WjX11ozPC+yP5fqBc5=kbSzPrVmg0_pEbxZ-FePw1w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Jan 5, 2025 at 6:45:49 PM,
Tomas Hajny <<a href="mailto:XHajT03@hajny.biz"
moz-do-not-send="true" class="moz-txt-link-freetext">XHajT03@hajny.biz</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"
type="cite"> As you might have noticed, it's simply a more
general solution allowing<br>
to cover all target platforms supporting dynamic libraries in
a more or<br>
less equal way. </blockquote>
</div>
<div><br>
</div>
<div dir="ltr">Yeah if DLLs have their own namepace and $LINKLIB
doesn’t propagate to all external functions in the unit then I
guess the functions won’t link when a DLL is used.</div>
<div dir="ltr"> <br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">Regards,</div>
Ryan Joseph</div>
</div>
<br>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
</body>
</html>