This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: `cout << setw(...) << "..."' gives segfault


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]