sLinklib/de
Zurück zu den lokalen Compilerdirektiven.\
$LINKLIB
Die Direktive $LINKLIB erlaubt das Linken (Einbinden) von Bibliotheken (Dynamic Link Library's).\
Beispiel:\
interface
// die Bibliothek (DLL) mit dem Namen test wird eingebunden
{$LINKLIB test}
// stellt die Funktion der Bibliothek (DLL) zur Verfügung
function strTest (P : pchar): longint; cdecl;
implementation
// importiert die Funktion aus der Bibliothek (DLL)
function strTest (P : pchar): longint; cdecl; external;
end.Hinweise:
Der Linker sucht nach der Bibliothek im Linker Bibliotheks-Suchpfad. Der Suchpfad des Linkers kann mit der Kommandozeilenoption -Fl eingestellt werden.\
--Olaf 16:57, 4 January 2013 (UTC)
From the Free Pascal wiki, page "sLinklib/de", as it stood on 2020-01-16 after a change by Bart, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.