Date: Fri, 3 Feb 1995 21:32:34 +0001 (EST) From: Andy Adams Subject: DJGPP Floating Point Again To: djgpp AT sun DOT soe DOT clarkson DOT edu 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. 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 -------------------------------------------------------------------