[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makeC++SharedLib_r not used on AIX

From: Tommi Mäkitalo
Subject: makeC++SharedLib_r not used on AIX
Date: Fri, 22 Dec 2006 16:25:30 +0100
User-agent: KMail/1.9.5


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 

There is a empty line instead of the message "** This is libfoo (tagdemo) **" 
in the output.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]