This might not be the right place to ask, but I couldn't find anywhere
else. So here it goes.
I tried to compile the following, RWTPtrHashMuliMap, which requires
STL. And CC, 98/12/15 version, complained things I don't understand.
Does it mean I cannot use any RW classes dependent on STL??
--------------------SRC-----------------------------
#include<rw/tphmmap.h>
#include<rw/cstring.h>
#include<iostream.h>
struct silly_hash{
unsigned long operator()(RWCString x) const
{ return x.length() * (long)x[0]; }
int main(){Quote:};
RWCString snd = "Second";
RWTPtrHashMultiMap<RWCString,int,silly_hash,equal_to<RWCString> >
contest;
contest.insert(new RWCString("First"), new int(7));
contest.insert(&snd, new int(3));
contest.insert(&snd, new int(6)); // duplicate key OK
contest.insert(new RWCString("Third"), new int(2));
cout << "There were " << contest.occurrencesOf(&snd)
<< " second place winners." << endl;
return 0;
I compiled it with CC -library=%allQuote:}
-------------ERRORS-------------------------
"/opt/SUNWspro/SC5.0/include/CC/rw7/rw/tphmmap.h", line 48: Warning:
#error Cannot include header if RW_NO_STL macro is defined for your
compiler.
"/opt/SUNWspro/SC5.0/include/CC/rw7/rw/stdex/slist.cc", line 95:
Error: iterator is not a member of rw_slist<>.
"/opt/SUNWspro/SC5.0/include/CC/rw7/rw/stdex/slist.cc", line 96:
Error: iterator is not defined.
.... so on and so on.
Thanks.