Newsgroups: comp.os.msdos.djgpp From: "Mike Ruskai" Message-ID: References: X-Newsreader: PMINews 2.00.1201 For OS/2 Organization: TLF MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: Some questions, and some bugs (perhaps) Lines: 48 Date: Thu, 22 Oct 1998 19:08:17 GMT NNTP-Posting-Host: 24.3.130.120 NNTP-Posting-Date: Thu, 22 Oct 1998 12:08:17 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 22 Oct 1998 13:10:50 +0200 (IST), Eli Zaretskii wrote: > >On Thu, 22 Oct 1998, Mike Ruskai wrote: > >> it took me a bit to figure out that ifstream and ofstream objects >> weren't assuming ios::in and ios::out, as they should. > >How do you figure that, and in what version of GCC/libstdcxx did you see >this? Isn't it painfully obvious? ifstream and ofstream are unidirectional file stream objects. I'm basing the correct behavior on what other C++ compilers do, and what common sense dictates. I don't know of all versions of GCC have this bug. >> Primarily what I need to know is what defines the compiler makes, so that I >> can make alterations specific to it, rather than to anything but my normal >> compiler. > >Use __DJGPP__. This is explained further in section 8.6 of the DJGPP FAQ >list (v2/faq211b.zip from the same place where you got DJGPP). Thanks. I did not expect to find such information under that section. I don't think it belongs there. >> In addition, is there any way to compress the executables, and keep them >> functional? > >v2misc/mlp107b.zip from the DJGPP sites. But I suggest to read section >8.13 of the FAQ first, since it is quite possible that your program can >be made significantly smaller even without compressing it. Thanks, another option I was looking for. Something I forgot to mention is that the compiler had a problem with this statement: enum BooleanConstants {false=0, true=1}; Any ideas why? Works perfectly well with two other compilers. -- - Mike Remove 'spambegone' to send e-mail.