how to solve the ambiguous defination of Rouguewave istream
807575Oct 10 2006 — edited Oct 11 2006on 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.