We are compiling a piece of code on Solaris 2.7 with Sun Workshop 5.0.
While linking if we give cout in the code it gives the following error
But if we declare a boolean variable and output it usnig cout beforeQuote:>&std::basic_ostream<char,std::char_traits<char> >::operator<<(bool)
any other cout call in the code it works fine .
i.e if I add
bool bTemp = true;
before the first call to cout then it works fine. We are calling some
third party libraries from this piece of code.
One similar problem comes when I use "ofstream" type of object in
other shared library, It compiles fine but fails when called from an
This whole thing is working fine on Solaris 2.8. I feel the problem is
due to some incompatible libraries.
Can anybody suggest any patch recommended, or solution to this