Hi, for building a C++-library on AIX there is a script makeC++SharedLib or makeC++SharedLib_r in multithreaded apps, which according to IBM have to be used. Otherwise static initializers are not called.
I ran into this problem and prepared a testcase, which confirms this. I modified the tagdemo to use a static std::string-object to print the in the library. On AIX the string is empty. You can find my modified version of tagdemo on http://www.tntnet.org/tagdemo-0.1.tar.gz and the output on AIX at http://www.tntnet.org/tagdemo.out. There is a empty line instead of the message "** This is libfoo (tagdemo) **" in the output. Tommi _______________________________________________ Bug-libtool mailing list Bug-libtool@gnu.org http://lists.gnu.org/mailman/listinfo/bug-libtool