Mail Archives: djgpp/1995/02/04/20:44:36
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 |
+--------------------------------------------------------+
- Raw text -