From: dek@cgl.ucsf.edu (David Konerding)
Subject: Re: Linux, streams and the standard library
Date: 8 May 2001 02:04:07 GMT [thread overview]
Message-ID: <slrn9fel0n.cvj4.dek@socrates.cgl.ucsf.edu> (raw)
In-Reply-To: 9chri6$1q8$1@kantaka.co.uk
On 29 Apr 2001 20:54:46 +0100, Philip Armstrong <phil@kantaka.co.uk> wrote:
> In article <teollrq3a3go72@corp.supernews.co.uk>,
> Neil Butterworth <neil_butterworth@lineone.net> wrote:
>>"John Beardmore" <wookie@wookie.demon.co.uk> wrote in message
>>news:WvwRxWTNLF76Ew5r@wookie.demon.co.uk...
>>
>>[snip]
>>>
>>> So - a couple of questions:
>>>
>>> 1) is there a way to get ostringstream to work ?
>>
>>Yes - use STLport. You can download it from www.stlport.org.
>
> Or install gcc-2.95.3 which has ostringstream in its version
> of the STL.
>
>>> 2) is the Standard C++ library ready for prime time under Linux ?
>>> Isn't its
>>> use utterly routine these days ? Or am I trying to be too modern ?
>>
>>No, I've been using it for quite some time with absolutely no problems. Not
>>under RedHat though - I run SuSE.
>
> Indeed. With gcc-2.95.3 the STL support is pretty complete. gcc-3.0
> should finish off all the corner cases in the c++ support hopefully.
Not entirely true. STL support may be nearly complete (thanks to SGI)
but the standard library isn't. STL is just a part of the standard library
and ostringstream isn't part of STL (it's part of IOStreams). I've been playing with
gcc-2.95.3 ad gcc-3.0pre (from CVS) to test their standard C++ library. It's far
from as good as STLport. I get segfaults when using ostringstreams heavily--
I ran out of time figuring out the minimal test case which reproduces the problem, mailing them in, waiting for them
to be patched, downloading new versions of the compiler, recompiling
the compiler and the library (1-2 hrs on a fast machine!), repeat. THat's why I responded earlier
saying "I'm going to save you a lot of time" because 2.95.3 + STLport-4.0 is really stable & solid.
I did spend a couple weeks chasing a really tricky bug which we were certain was STLport-4.0 but
actually turned out to be a problem with the run time linker (if you make a C app that dlopen()s two
shared object files, each of which is linked dynamically gainst STLport shared library,
you get crashes in IOStreams, because the run-time linker doesn't resolve symbols properly when
it loads the second .so. The main C app (python) specifically does not like havig RTLD_GLOBAL set
when it dlopen()s the .so's, so it's not surprising we have this behavior (what's surprising
is that IRIX and Tru64 don't have this "problem". We had to work
around it using LD_PRELOAD-- yecch). But C++ dlls that get loaded
into C programs are fairly esoteric, hopefully not an issue for most programmers.
next prev parent reply other threads:[~2001-05-08 2:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-29 17:43 Linux, streams and the standard library John Beardmore
2001-04-29 17:02 ` Neil Butterworth
2001-04-29 19:54 ` Philip Armstrong
2001-04-29 20:47 ` Rasmus Bøg Hansen
2001-05-08 2:04 ` David Konerding [this message]
2001-04-29 20:22 ` John Beardmore
2001-04-29 19:47 ` Neil Butterworth
2001-04-30 0:44 ` John Beardmore
2001-04-29 18:28 ` David Konerding
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox