2: Dynamic Load
Load C shared objects
x 2: y,
xis a file symbol
yis a 2-item list: the name of a C function (symbol) and its rank (int)
returns a function that calls it.
Suppose we have a C function in
cpu.so with the prototype
K q_read_cycles_of_this_cpu(K x);
assign it to
If the shared library, as passed, does not exist, kdb+ will try to load it from
os is the operating system and architecture acronym, e.g.
w64, etc. If using a relative path which does not resolve to reside under
$QHOME/os, ensure that
LD_LIBRARY_PATH contains the required absolute search path for that library. On Windows, use
PATH instead of