Mail Archives: djgpp/1995/02/04/12:56:40
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
-------------------------------------------------------------------
- Raw text -