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!

Include file conflict? mbstate_t

807575May 8 2000 — edited Sep 18 2000
I'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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2000
Added on May 8 2000
3 comments
154 views