Say I write something like
julia> ccall(:printf, Int, (Cstring,), "hello there!\n")
hello there!
13
i,e,. without explicitly specifying a path to a library… what determines the default set of paths Julia will search for the printf
function?
(x-posted on slack, will update either if I get an answer)
it should check the usual library paths, since iirc it just delegates that to dlsym
or LD_LIBRARY_PATH
on linux, or the other usual places for libraries, which is system dependent
e.g. Windows also checks the current directory, IIRC
Symbols in libraries dlopened with RTLD_GLOBAL are available without specifying the library (which is also a good way to get clashes between different libraries providing same symbols)
Last updated: Oct 02 2023 at 04:34 UTC