public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* fstream, egcs, and seg faults
@ 1999-03-15 18:19 David B. Rees
       [not found] ` < XFMail.990315181911.dbr@spoke.nols.com >
  1999-03-31 23:46 ` David B. Rees
  0 siblings, 2 replies; 10+ messages in thread
From: David B. Rees @ 1999-03-15 18:19 UTC (permalink / raw)
  To: egcs

This may be offtopic, but I'm hoping someone here has come across this problem
before and has a solution.  I searched the last two months of egcs archives with
no luck.

The following two programs will segfault on my Linux machine:

#include <fstream.h>
void main(void)
{
        ifstream *IS;
        IS = new ifstream("test.cpp");
}

#include <fstream.h>
void main(void)
{
        ifstream IS;
        char line[256];
        IS.open("test.cpp");
        IS.getline(line, 255);
}

I came across this problem while trying to compile VTK on my machine.  I
searched dejanews for similar reports, and came across a few people who had. 
Here's the versions of software I'm running:

spoke:~> g++ -v
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

glibc2.1, Binutils 2.9.1.0.21, kernel 2.2.3

glibc hasn't been recompiled with a glibc2.1 compiled compiler.


Any ideas?  Should I attempt recompiling glibc2.1?

Thanks,
Dave

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-03-31 23:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-15 18:19 fstream, egcs, and seg faults David B. Rees
     [not found] ` < XFMail.990315181911.dbr@spoke.nols.com >
1999-03-16 15:46   ` Martin v. Loewis
     [not found]     ` < 199903162344.AAA00748@mira.isdn.cs.tu-berlin.de >
1999-03-17 11:40       ` (OFFTOPIC?) fstream, egcs, glibc2.1 " David B. Rees
     [not found]         ` < XFMail.990317114016.dbr@spoke.nols.com >
1999-03-17 11:49           ` David Edelsohn
1999-03-31 23:46             ` David Edelsohn
1999-03-17 15:23           ` Martin v. Loewis
1999-03-31 23:46             ` Martin v. Loewis
1999-03-31 23:46         ` David B. Rees
1999-03-31 23:46     ` fstream, egcs, " Martin v. Loewis
1999-03-31 23:46 ` David B. Rees

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).