It works well with a symbol, sorry for the noise. Code:

@assert length(filter(x->contains(x, "hello"), Libdl.dllist())) == 0
hellohdl = Libdl.dlopen("/Users/chappi/_curr/c_und_julia/hello")
hellosym = Libdl.dlsym(hellohdl, :my_main)
@assert length(filter(x->contains(x, "hello"), Libdl.dllist())) == 1
ccall( hellosym, Cint, ())
Libdl.dlclose(hellohdl)
@assert length(filter(x->contains(x, "hello"), Libdl.dllist())) == 0  # ALL 
FINE


Reply via email to