Static item constructors not called in shared libs (mips-sgi-irix-6.5/gcc-3.0.4)

Dave Williss dwilliss@microimages.com
Wed Jun 5 15:52:00 GMT 2002


Constructors for C++ static data in a shared library is not
being called.  This is on an mips-sgi-irix-6.5 with gcc 3.0.4

I checked the man page for ld and found a -cxx parameter
that you have to pass to make the magic work but it still
doesn't.  

I noticed the SGI linker also has -init and -fini parameters
that let you specify functions to call when loading/unloading
the shared lib, but there doesn't seem to be anything I
can pass (__initialize or something).  Is there something
else I need to do to make my shared library C++ aware?

 -- Dave Williss
------
Meddle not in the affairs of dragons, 
   for you are crunchy and taste good with catsup





More information about the Gcc-bugs mailing list