This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: seg fault with IO
- To: "libstdc++ at sourceware dot cygnus dot com" <libstdc++ at sourceware dot cygnus dot com>
- Subject: Re: seg fault with IO
- From: Kevin Ediger <kediger at licor dot com>
- Date: Sun, 14 Nov 1999 21:27:49 -0600
- Organization: LI-COR, Inc.
- References: <86256829.00221DB6.00@hooper2.licor.com>
- Reply-To: kediger at licor dot com
Gerald Gutierrez wrote:
> reproduce this seg fault? Or is it just me ...
>
> #include <fstream>
> using namespace std;
>
> int
> main(int ac, char* av[])
> {
> ifstream ifs("read.cc");
> char ch;
> ifs.read(&ch, 1); // <-- Problem here
> return 0;
> }
This runs fine on my Linux machine with the CVS library.
Kevin
--
LI-COR, Inc.
Voice: 402.467.3576 ext 3695, Fax: 402.467.0872
mailto:kediger@licor.com
http://www.licor.com