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 the ambiguous defination of Rouguewave istream

807575Oct 10 2006 — edited Oct 11 2006
on Solaris nevada & Studio 11, I compile the following code

#include <rw/rwdate.h>
#include <rw/rstream.h>

int main(){
// ENIAC start date
RWDate d(14, "February", 1945);

// Today
RWDate today;

cout << d.asString("%A, %B %d 19%y")
<< " was the day the ENIAC computer was" << endl
<< "first turned on. "
<< today - d << " days have gone by since then. " << endl;

return 0;
}

the compilers says that :

"/export/home/opt/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The name istream is ambiguous, istream and std::istream.
"/export/home/opt/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The name istream is ambiguous, istream and std::istream.
"/export/home/opt/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The type "istream" is incomplete.
"/export/home/opt/SUNWspro/prod/include/CC/rw7/rw/cstring.h", line 347: Error: The name istream is ambiguous, istream and std::istream.

How can I solve it?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2006
Added on Oct 10 2006
2 comments
264 views