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!

how to solve error in istream and iostream.h?

807575Jun 24 2008 — edited Nov 11 2008
compiling with C++ source and got the following erros inside iostream

"/export/home/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 41: Error: Use ";" to terminate declarations.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 4: Error: istream is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 5: Error: cin is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 6: Error: ws is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 9: Error: ostream is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 10: Error: cout is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 11: Error: cerr is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 12: Error: clog is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 14: Error: ios is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 15: Error: iostream is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 16: Error: streambuf is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: endl is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 21: Error: ends is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 22: Error: flush is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 23: Error: streamsize is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 24: Error: streampos is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 25: Error: unitbuf is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 26: Error: nounitbuf is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 27: Error: boolalpha is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 28: Error: noboolalpha is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 29: Error: showbase is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 30: Error: noshowbase is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 31: Error: showpoint is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 32: Error: noshowpoint is not a member of std::std::std.
"/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 33: Error: showpos is not a member of std::std::std.
Compilation aborted, too many Error messages.
*** Error code 1

My system is:
sol-10-u5-ga-x86
SunStudio12ml-solaris-x86-200709-pkg.tar.bz2
No patch

can anyone figure out what this mean ?

Edited by: Harry-Potter on Jun 24, 2008 8:20 PM

Edited by: Harry-Potter on Jun 25, 2008 12:52 AM

Edited by: Harry-Potter on Jun 25, 2008 12:55 AM

Edited by: Harry-Potter on Jun 25, 2008 12:55 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2008
Added on Jun 24 2008
5 comments
722 views