This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dlclose() doesn't unload any .so that uses Boost


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]