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...