From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Error in DJGPP? Date: Thu, 12 Feb 1998 18:10:07 -0500 Organization: Two pounds of chaos and a pinch of salt. Lines: 32 Message-ID: <34E3814F.474E@cs.com> References: NNTP-Posting-Host: ppp242.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Till Harbaum wrote: > > While compiling a compiler test program (config.c by > Steven Pemberton) we detected a very strange problem > with djgpp. Under all other os's we tested > (linux-gcc, dos-quickc, tos-gcc and tos-turboc) this > program just worked fine. Except with djgpp 2.01. > The djgpp compiled binary just didn't do any output. > If you flush output before the malloc thing everything > is fine. If you don't flush output all text stored > in the output buffers is lost. > > Am i doing something wrong? Is this a compiler error? Your test program produced the desired output on my system when run from a Windows 95 DOS shell, with ERROR=1 and ERROR=0. It compiled without warnings or errors. Do you have the latest DJGPP libc? Tom Demmer maintains a patched libc.a on his ftp site: ftp://ftp.lstm.ruhr-uni-bochum.de/pub/djgpp/patches/. Try using this to see if it changes the program's behavior. I'll test it on a plain DOS box tonight to see if there's any change. Can you run other DJGPP programs without difficulty? -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | "Starting flamewars since 1993" | http://www.cs.com/fighteer/ | | *** NOTICE *** This .signature | ICQ UIN#: 7406319 | | is generated randomly. If you don't like it, sue my computer. | ---------------------------------------------------------------------