Compilation Problem: solaris 5.7 and Sun Workshop 5.0

Compilation Problem: solaris 5.7 and Sun Workshop 5.0

Post by Deepe » Wed, 27 Mar 2002 20:47:24

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

undefined symbol

Quote:>&std::basic_ostream<char,std::char_traits<char> >::operator<<(bool)

But if we declare a boolean variable and output it usnig cout before
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



1. Compilation error with ifstream on Solaris v7/Sun Workshop 5.0

I am trying to compile code that passes an ifstream** to a method, by
taking the address of a local ifstream*.  When I attempt to compile
the code on Solaris v7 (running on an UltraSPARC machine), using Sun
Workshop v5.0, I get the following error:

Error: Formal argument theStream of type ifstream** in call to static
SocketImpl::createInputStream(int, ifstream**) is being passed
std::basic_ifstream<char, std::char_traits<char>>**.

If I turn on the -compat=4 switch, this code will compile properly.
However, other code in the same library requires that the switch not
be used.  Is there another switch that can be used to alleviate this


2. Missing module for ISDN / AVM PCMCIA card

3. Need help to run SUN Workshop 5.0 beta (problems to run solaris license manager)

4. DVD-R/RAM Writers...

5. Problems compiling glib (solaris 5.6, Sun Workshop C++ 5.0)

6. Another try: how to replace lkm's with modules

7. PPP on Solaris 7 (SunOS 5.7 on SUN SPARCstation 10)

8. Scripts for web forms

9. diff b/w red hat linux OS 7.1 and Sun SOlaris OS 5.7

10. compatibility between GCC and sun workshop 5.0 on Solaris 7

11. gpc on Sun Solaris 8 with WorkShop 5.0

12. GNU PC on Sun Solaris 8 with WorkShop 5.0

13. Problems Enabling Remote Display (Sun OS 5.7)