This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: libstdc++ [io]fstream cannot open file in binary mode (g++ and egcs)


> 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

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