Mail Archives: djgpp/1998/10/22/14:15:22
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.
- Raw text -