I’m using a shared library by ccall
in my code, it works fine as long as the library does not change.
However, if I’ve used the library in Julia REPL, then changed c source code and recompiled the library, the Julia REPL will continue to use the old version.
I suspect that something has been cached about the shared library, and I only need to clean them up to use the new version. But I have no idea how to do it. Any ideas are appreciated.
ps: Maybe if I am using Libdl, I can just dlclose
then dlopen
again. But I’m using ccall
directly and not using Libdl.