Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sun Studio 9 C++ compiler 5.6 Multiple declaration for std::strstreambuf::

807575Oct 24 2006 — edited Oct 25 2006
Hi,

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'
++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2006
Added on Oct 24 2006
2 comments
170 views