CC (SUN compiler) and STL

CC (SUN compiler) and STL

Post by Nicola » Fri, 10 Nov 2000 04:00:00



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

> > Sent via Deja.com http://www.deja.com/
> > Share what you know. Learn what you don't.

> check out www.stlport.org .

 
 
 

CC (SUN compiler) and STL

Post by Salem Lee Ganzho » Fri, 10 Nov 2000 04:00:00


: 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.
--