Date: Sat, 4 Feb 1995 17:49:06 -0500 (EST) From: Long Doan To: Andy Adams Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: DJGPP Floating Point Again On Fri, 3 Feb 1995, Andy Adams wrote: > I just installed the base set of djgpp software on my 486SX2 PC. > I have no 80387 co-processor. > I'm having trouble with floating point. > > I have the following in my autoexec.bat: > > set GO32=emu c:\bin\gcc\bin\emu387 > > I compile with GCC the following test program: > > main() > { > printf("\n DVAL = %f", 100.0); > exit(0); > } > > When I execute the program in DOS without Windows, I get the correct > answer; DVAL = 100.0000 > > When I execute it in a DOSPRMPT window within Windows, > I get; DVAL = NaN. Well, the emulation doesn't work under DPMI (yet). > Can I get DOS applications with floating point to run in windows > DOS Prompts at all when compiled using GCC? > > ------------------------------------------------------------------- > Andy Adams |Internet: ada AT xmx DOT com > XMX Corporation | > 46 Manning Road |Telephone: (508)670-8444 > Billerica, Ma. 01821 |Fax: (508)670-8448 > ------------------------------------------------------------------- > +--------------------------------------------------------+ | Long Doan ldoan1 AT osf1 DOT gmu DOT edu | | ld AT netrix DOT com | +--------------------------------------------------------+