Include file conflict? mbstate_t
807575May 8 2000 — edited Sep 18 2000I've just installed Workshop C++ 5.0 on Solaris 8 and had also perviously installed Sun's CD of GNU tools. When compliling a simple program I get the following error:
CC -o primes primes.cc
"/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.
Note that my program only includes <iostream>, and then uses std.
Any ideas? Thanks in advance.
Jonathan