Mail Archives: djgpp/2001/12/14/18:49:34
> I would like to see the full error message printed when you try to run
> a floating-point program after setting 387=n. Please post that here.
Okay, here goes:
Exiting due to signal SIGNOFP
Coprocessor not available at eip=0000157e
eax=00000001 ebx=00001000 exc=00000000 edx=00000000 esi=00000054
edi=000287cc
ebp=000a87a8 esp=000a8790 program=C:\KB\FLOAT.EXE
cs: sel=00a7 base=10000000 limit=000affff
ds: sel=00af base=10000000 limit=000affff
es: sel=00af base=10000000 limit=000affff
fs: sel=008f base=000059c0 limit=0000ffff
gs: sel=00bf base=00000000 limit=0010ffff
ss: sel=00af base=10000000 limit=000affff
App stack: [000a87cc..000287cc] Exceptn stack: [00028720..000267e0]
Call frame traceback EIPs:
0x0000157e
0x00010822
That's the message I get.
Heres my autoexec.bat:
@LH /L:0;1,45456 /S C:\DOS\SMARTDRV.EXE /X
@echo off
PROMPT $p$g
PATH C:\DOS;c:\progs;C:\HPLJUTIL;
SET TEMP=C:\DOS
set 387=n
rem c:\dos\vresume
rem LH /L:1,41520 vchad
rem c:\dos\mouse.com
Here's my config.sys:
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.EXE NOEMS
BUFFERS=30,0
FILES=30
DOS=UMB
LASTDRIVE=E
FCBS=4,0
DEVICEHIGH /L:1,12048 =C:\DOS\SETVER.EXE
DOS=HIGH
Here's the output of SET:
COMSPEC=C:\COMMAND.COM
PROMPT=$p$g
PATH=C:\DOS;C:\PROGS;C:\HPLJUTIL;
TEMP=C:\DOS
387=n
Here's my program:
#include <iostream>
main() {
float x = 12.3;
x = x / 10;
cout << x;
}
> Do you have a file emu387.dxe in your `bin' subdirectory?
The bin directory of DJGPP? Yes, but ah, this may be my problem. I am
compiling on a more modern PC to run on my 386 laptop. All the above
diagnostics were for the laptop. I should probably set 387=n on my compiling
pc. This would fix it, right?
Thanks for all the help,
Derek Young
- Raw text -