dlclose() doesn't unload any .so that uses Boost
David Hagood
david.hagood@gmail.com
Mon May 30 05:23:00 GMT 2011
On Sun, 2011-05-29 at 01:32 +0200, J wrote:
> // compile with: g++ -ldl host.cpp -o host
<snip>
> // compile with: g++ -lboost_signals child.cpp -shared -fPIC -o libchild.so
Just for grins, what happens if you link main against Boost?
g++ -ldl host.cpp -o host -lboost_signals
It may be that since Boost is being pulled in to satisfy the child,
somehow that is preventing the child from being unloaded.
Of course, this isn't really a GCC question, but a libc/binutils
question, so you may do better over on that list.
More information about the Gcc-help
mailing list