`cout << setw(...) << "..."' gives segfault
Petter Urkedal
petter.urkedal@matfys.lth.se
Tue Oct 17 02:29:00 GMT 2000
Is this related to the `-{gc,f}sections' problem? At least, a
workaround is to `#include <bits/ostream.tcc>', as in
#include <iostream>
#include <iomanip>
#include <bits/ostream.tcc>
int
main()
{
std::cout << std::setw(14) << "EW" << std::endl;
return 0;
}
On Tue, 17 Oct 2000 05:21:49 Rich Churcher wrote:
>
> > [---]$ uname -a
> > Linux nilsson 2.2.16 #1 Wed Aug 2 20:03:33 GMT 2000 i686 unknown
>
> Could this be specific to RedHat 7.0? I've never noticed this issue
> before, and only upgraded in the past few days.
(Hmm, it's mostly specific to SuSE 7.0. And `unknown', though it
dosn't say so in the dictionary, it means Athlon, really.)
Cheers,
-petter.
More information about the Libstdc++
mailing list