This is the mail archive of the libstdc++@sourceware.cygnus.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: seg fault with IO


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

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