This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++ [io]fstream cannot open file in binary mode (g++ and egcs)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: libstdc++ [io]fstream cannot open file in binary mode (g++ and egcs)
- From: Andy Rysin <arysin at yahoo dot com>
- Date: Tue, 25 Jan 2000 15:08:27 -0800 (PST)
- Cc: Leonid Pauzner <uue at pauzner2 dot dnttm dot rssi dot ru>
> After some experimentation I found out that
> ofstream fpw (argv[1], ios::binary |
ios::out);
> will work properly, but seems excessive when
ofstream declared explicitely.
> The same thing with
> ifstream fp (somename, ios::binary);
> vis
> ifstream fp (somename, ios::binary |
ios::in);
I found this bug about year ago also.
AFAIK this is fixed in latest CVS tree of libstdc++,
not even in libstdc++-2.90.7
Wish luck,
Andy
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com