Sun workshop 5.0 and rogue wave??

Sun workshop 5.0 and rogue wave??

Post by John » Sat, 08 Jan 2000 04:00:00

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??


struct silly_hash{
   unsigned long operator()(RWCString x) const
   { return x.length() * (long)x[0]; }


int main(){
  RWCString snd = "Second";
  RWTPtrHashMultiMap<RWCString,int,silly_hash,equal_to<RWCString> >
  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=%all
"/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
"/opt/SUNWspro/SC5.0/include/CC/rw7/rw/stdex/", line 95:
Error: iterator is not a member of rw_slist<>.
"/opt/SUNWspro/SC5.0/include/CC/rw7/rw/stdex/", line 96:
Error: iterator is not defined.
.... so on and so on.



1. Sun C++ 5.0 and Rogue Wave 7.0.9

I've upgraded my sun compiler from version 4.2 to version 5.0 and now the
rogue wave libraries won't compile with it.  When I looked at the compile.h
file in the rw7 directory it says the the compiler version is 420, and that
the file "compile.h" is autogenerated. Is there a way for me to re-generate
this file with my new compiler? and how would I do that?


2. making .a libs

3. Rogue Wave 6.0.4, Sun C++ 4.1, Solaris 2.4 -- link problem

4. forced automounting

5. Sun compiler and Rogue Wave

6. RPM and Slackware

7. Sun Workshop 4.2 & Rouge Wave

8. Installed Linux- Funny Questions

9. Compile c++ program with Rogue Wave libraries?

10. A question on the Rogue Wave C++ class library

11. Rogue Wave incompatibility

12. Rogue Wave Tools.h++

13. Using g++ with Rogue Wave on Solaris