seg fault with IO
Kevin Ediger
kediger@licor.com
Sun Nov 14 19:35:00 GMT 1999
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
More information about the Libstdc++
mailing list