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!

/opt/SUNWspro/prod/include/CC/Cstd/./istream Error

807575Jul 19 2005 — edited May 18 2006
While trying to compile some C++ program on Solaris 10 with Sun CC 5.5, I'm facing the following issues.

"/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 41: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 444: Error: Illegal number of arguments for std::ostream::operator<<(std::basic_ostream<std::basic_ostream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, std::traits>::traits>&, std::ostream::charT).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: While specializing "std::ostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 450: Error: Illegal number of arguments for std::ostream::operator<<(std::basic_ostream<std::basic_ostream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, std::traits>::traits>&, char).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: While specializing "std::ostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 457: Error: Illegal number of arguments for std::ostream::operator<<(std::ostream &, char).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: While specializing "std::ostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 464: Error: Illegal number of arguments for std::ostream::operator<<(std::basic_ostream<std::basic_ostream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, std::traits>::traits>&, const std::ostream::charT*).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: While specializing "std::ostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 470: Error: Illegal number of arguments for std::ostream::operator<<(std::basic_ostream<std::basic_ostream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, std::traits>::traits>&, const char*).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: While specializing "std::ostream ".


Any idea what should be done to overcome these errors?

Ouput of CC -V is given below:
CC: Sun C++ 5.5 Patch 113817-13 2005/04/26

Thanks for your help
Chakra
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2006
Added on Jul 19 2005
4 comments
208 views