Sun Studio 9 C++ compiler 5.6 Multiple declaration for std::strstreambuf::
807575Oct 24 2006 — edited Oct 25 2006Hi,
I am moving my C++ program library code etc to new version of Compiler Sun Studio 9 from Sun Forte Developer 7 complier.
When I am trying tomake my string class library I am geting following errors with or without compat=5 flag.
Please help me to compile my library code using new compiler as I need to use this with new version of MQ 5.3.
Thanks
Ravi
++++++++++++++++++++++++++++++++++++++++++++++++++++++
CC -xar -compat=5 -xildoff -i -features=no%strictdestrorder -I. -I/ford/thishost/u/rbhave/mqrouter/include -c strfrnds.C
"/opt/SUNWspro/prod/include/CC/Cstd/./strstream", line 71: Error: Multiple declaration for std::strstreambuf::strstreambuf(char*, long, char*).
"/opt/SUNWspro/prod/include/CC/Cstd/./strstream", line 71: Error: A previously specified default argument value cannot be changed.
"/opt/SUNWspro/prod/include/CC/Cstd/./strstream", line 75: Error: Multiple declaration for std::strstreambuf::strstreambuf(const char*, long).
3 Error(s) detected.
*** Error code 3
make: Fatal error: Command failed for target `strfrnds.o'
++++++++++++++++++++++++++++++++++++++++++++++++++++++