[Bug target/27319] C++ class object destructors are not called for static class objects in a shared library when dlclose is called.

hbd_bugreports at earthlink dot net gcc-bugzilla@gcc.gnu.org
Tue Apr 25 22:07:00 GMT 2006



------- Comment #2 from hbd_bugreports at earthlink dot net  2006-04-25 22:07 -------
Subject: Re:  C++ class object destructors are not called
 for static class objects in a shared library when dlclose is called.

So.... You are telling me this is not a gcc problem but a limitation in 
CYGWIN.   (I'm not really surprised.)

... In which case I resort to my work-around of eliminating static class 
objects declared in the body of functions that will be used in the 
shared library.

Thanks for the prompt reply,
Harry Dellicker


pinskia at gcc dot gnu dot org wrote:

>------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-25 21:31 -------
>Yes, this is a target specific issue.  If the target does not support atexit,
>this is what will happen.
>
>
>  
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27319



More information about the Gcc-bugs mailing list