blob: 6851b72c4e446720ed651d7bd18b9a8afd84d75b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ %target=linux }
{ %needlibrary }
uses dl;
var
hdl : Pointer;
begin
WriteLn('dlopen');
hdl := dlopen('./libtlib2a.so', RTLD_LAZY);
if hdl = nil then
WriteLn(dlerror())
else
begin
WriteLn('dlclose');
dlclose(hdl);
end;
WriteLn('exit');
end.
|