This is the mail archive of the gcc-bugs@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]

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


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




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