libstdc++/25
jon
jbernard@roanoke.edu
Mon Nov 13 13:37:00 GMT 2000
The following reply was made to PR libstdc++/25; it has been noted by GNATS.
From: jon <jbernard@roanoke.edu>
To: libstdc++-gnats@sourceware.cygnus.com, Nicholas.Walker@desy.de,
bkoz@cygnus.com
Cc:
Subject: Re: libstdc++/25
Date: Mon, 13 Nov 2000 16:38:16 -0500
--------------AAA28001546EBD4BEF271327
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
im having the same problem, I'm using Redhat 7.0
with this code:
#include<fstream.h>
#include<iostream.h>
int main()
{
int num;
istream IN;
IN.open("filename");
IN >> num;
...
return 0;
}
this segfaults on the IN.open() line every time
I am compiling it with this command:
$ g++ testcode.cc -o testcode
$ ./testcode
$ segmentation fault (core dumped)
Does anyone know how I can fix this problem?
thank you very much for your time
Jon Bernard
jbernard@roanoke.edu
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=25&database=libstdc++
--
.^. .--------------Jon Bernard---------------.
/V\ | Email: jbernard@roanoke.edu |
// \\ | URL: http://cs.roanoke.edu/~jbernard |
/( )\ | IM: o0fenrir0o |
^^-^^ ^----------------------------------------^
--------------AAA28001546EBD4BEF271327
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
im having the same problem, I'm using Redhat 7.0
<br>with this code:
<p>#include<fstream.h>
<br>#include<iostream.h>
<p>int main()
<br>{
<br> int num;
<br> <br>
istream IN;
<br> IN.open("filename");
<br> IN >> num;
<br> ...
<p>return 0;
<br>}
<p>this segfaults on the IN.open() line every time
<br>I am compiling it with this command:
<p>$ g++ testcode.cc -o testcode
<br>$ ./testcode
<br>$ segmentation fault (core dumped)
<p>Does anyone know how I can fix this problem?
<p>thank you very much for your time
<p>Jon Bernard
<br>jbernard@roanoke.edu
<p><A HREF=" http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=25&database=libstdc++ "> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=25&database=libstdc++ </A>
<pre>--
.^. .--------------Jon Bernard---------------.
/V\ | Email: jbernard@roanoke.edu |
// \\ | URL: <A HREF=" http://cs.roanoke.edu/~jbernard "> http://cs.roanoke.edu/~jbernard </A> |
/( )\ | IM: o0fenrir0o |
^^-^^ ^----------------------------------------^</pre>
</html>
--------------AAA28001546EBD4BEF271327--
More information about the Libstdc++-prs
mailing list