Dear All,
I'm planning do some c++ coding on the the UltraSparc system in our group.
We had Sun Workshop 5 and Solaris 8 installed, and to test the c++
compiler, I wrote the very basic hello.cpp shown below
*******************************************************
#include <iostream.h>
int main(int argc, char **argv)
{
cout << "hello world"<<endl;
return 0;
*******************************************************Quote:}
but I faced a really wired phenomena as below:
*******************************************************
~> CC hello.cpp
"/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for
mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name
mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78: Error: The name
mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56: Error: The name
mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
4 Error(s) detected.
*******************************************************
I can't figure out what the problem, and we have been using fortran
and C successfully before. Is there anyone faced this problem before?
I'm really frustrated by it, any suggestions or comments will greatly
appreciated.
Thanks,
-Chi