ccall to run a function in a shared library. Now it’s loaded, and I’d like to unload it (say, to change something in the source and rebuild).
Libdl.dlcose looked like it might be what I need, but it takes a handle, and I don’t have one. I tried to get one, but it didn’t help me close the library. Can you unload a library loaded in this way?
x = Libdl.dlopen("name_of_my_library") Libdl.dlclose(x) # returns false filter(x->contains(x, "name_of_my_library"), Libdl.dllist()) # Still shows my library as loaded.