www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000204

When Created: 02/10/1998 08:35:09
Against DJGPP version: 2.01
By whom: pginkel@westbrabant.net
Abstract:
This is a bug report for RHIDE Version 1.4 (Sep 30 1997 23:06:59)
I am running MS-DOS 7.10 (Windows 95)

Important environment variables:
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;E:\DJGPP\BIN
DJGPP=e:\djgpp\djgpp.env
LFN=n
INFOPATH=e:/djgpp/info;e:/djgpp/gnu/emacs/info;e:/djgpp/info;e:/djgpp/gnu/emacs/info
LOCALEDIR=
LANGUAGE=
SHELL=
COMSPEC=C:\WINDOWS\COMMAND.COM
DJSYSFLAGS=



My problem is the following:
============================


I've found a difference between Borland's Turbo C++ and DJGPP, wich can be
confusing for (new) users of DJGPP. It's a verry simple difference, but I
didn't find out until I went looking verry far. I gave the open function of
ifstream the mode parameter ios::binary. This worked fine in TC++, but not
int DJGPP. The problem whas that ifstream doesn't work if you don't also
give it the parameter ios::in. It had to be ios::binary | ios::in. It took
me a long time to find this out. If more surprises await me, pleas tell me...
In short... ios::in isn't standard when ifstream opens a file. In TC++ it is.
Try it out...

Note added: 04/13/1999 07:00:48
By whom: eliz@is.elta.co.il
This is a known problem in the GNU C++ libraries.  It should be
solved by porting the library better.

But this is not a DJGPP bug.

Closed on 04/13/1999 07:00:30: A bug in C++ libraries.
By whom: eliz@is.elta.co.il



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010