This is the mail archive of the
mailing list for the Cygwin project.
RE: c++ ifstream problem with gcc 3.2
- From: Zhabitsky Oleg-QOZ001 <Oleg dot Zhabitsky at motorola dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 18 Dec 2002 21:07:43 -0000
- Subject: RE: c++ ifstream problem with gcc 3.2
I've faced the same problem after installation gcc 3.2.
How I solved it in my program:
ifstream cur_stream(file_name1, ios::in);
Hope, it'll help you.
> I recently encountered the problem with the gcc 3.2 compiler
> of cygwin
> using ifstream. Basically it is the same problem as mentioned in
> http://gcc.gnu.org/ml/gcc-help/2002-06/msg00079.html although
> this is about
> gnu cc 3.0. I thought that this was already fixed. The
> problem is that when
> a ifstream object is closed and than reopened with the open
> method to open
> another file, no data is returned. But if one uses 2 ifstream
> everything works perfectly. Is this a known issue with c++ on cygwin ?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html