: you can use:
: CC -library=rwtools7 (_dbg if needed)
:
: >
: > > Hi,
: > >
: > > Is there any possibility to use STL with CC (SUN compiler)?
: > >
: > > ================================================
: > > CC: WorkShop Compilers 4.2 30 Oct 1996 C++ 4.2
: > > SunOS 5.6
: > > =================================================
: > >
: > > Thanks in advance,
: > > Alex
I have had incredibly bad luck with SC5.0 CC, which is supposedly a
major improvement over 4.2. In general any code which extensively
uses templates is doomed to fail. Yesterday CC asserted on me 3
times. All of which had to do with using templated member fn's. But
this is something you _REALLY_ want to do in stl, e,g:
struct funkyCompare {
bool operator();
Quote:};
list<funkyType> l;
l.push_back(funkyObject);
.
.
l.sort(funkyCompare()); // CC might assert!!!!!
// buti if you grok the includes you will know
// sunpro does not use the templated member fn
// but!!!! the normal sort() may assert on you
// as well!!!!
I recommend sticking to g++ if you are going to use stl.
--