www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/06/07:42:07

Subject: Compiles OK but fails on execution
To: djgpp AT delorie DOT com
Date: Wed, 6 May 1998 12:37:18 +0100 (BST)
MIME-Version: 1.0
Message-Id: <E0yX2Vj-0000VZ-00@owat.kis.keele.ac.uk>
From: "J.C. Austin" <j DOT c DOT austin AT chem DOT keele DOT ac DOT uk>

Hi,

I have a problem with a small program compiled using DJGPP in a Windows 95
environment. This program compiles and runs OK under UNIX but I need to run
it on a PC. There was no apparent problem with the compilation under DJGPP,
however the output obtained while running is displayed below.

This program is designed to take a 768x512 pixel "RAW." monochrome image with
0-255 grey levels (b), and with the aid of a light reference image (bb) and a
dark reference image (b1) it corrects for any background variation. The
intended output in this case is ws1.

I've tried updating libm.a with a patch as suggested in the FAQ but this
made no difference.

I've searched for "environ.lst" using explorer and it doesn't seem to exist
anywhere on the hard drive. Also I'm not sure where to find the output of
go32-v2. However along with the program output I'm sending copies of
"autoexec.bat" and "config.sys". The PC I'm running this on is a Pentium 166
with 32 MB RAM and 2 GB hard drive.

Please email me if you need any further info. I'd appreciate any
suggestions.

			Many thanks


			Jim Austin (cha28 AT keele DOT ac DOT uk).

************************output from bacorr when executed********************
C:\>cd djgpp

C:\djgpp>bacorr b bb b1 ws1
Exiting due to signal SIGFPE
Floating Point exception at eip=000017c8
eax=002b3004 ebx=000501c0 ecx=0033d004 edx=00000000 esi=00000054 edi=0000d0d0
ebp=0004d0a4 esp=0004d068 program=C:\DJGPP\BACORR.EXE
cs: sel=00af  base=82777000  limit=00348fff
ds: sel=00b7  base=82777000  limit=00348fff
es: sel=00b7  base=82777000  limit=00348fff
fs: sel=008f  base=0002b6b0  limit=0000ffff
gs: sel=00c7  base=00000000  limit=ffffffff
ss: sel=00b7  base=82777000  limit=00348fff

Call frame traceback EIPs:
  0x000017c8
  0x00001e96

C:\djgpp>
***********************************************************************

*********************config.sys****************************************
REM Tip:  Put the real-mode driver for your CD-ROM in here.
REM It won't be used by Windows 95, but it will be used if you
REM choose "Restart your computer in MS-DOS mode" from
REM the Shutdown menu in Windows or if you choose F8 and select
REM one of the Startup menu options that let you enter into MS-DOS
REM instead of loading the Windows 95 GUI.
REM 
REM Be sure the information following the /D switch on the CD-ROM
REM driver matches the information following the /d: parameter on
REM MSCDEX loaded in Autoexec.bat.

[COMMON]
shell=c:\command.com /e:1024 /p
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
device=c:\windows\emm386.exe frame=e000 noems
DOS=HIGH,UMB
FILES=40
buffers=40

REM *** The following block of lines was added by PC-NFS Configuration.***
LASTDRIVE=V
DEVICEhigh=C:\NFS\PCNFS.SYS /C^
DEVICEhigh=C:\NFS\SOCKDRV.SYS
DEVICEhigh=c:\lanman\PROTMAN.SYS /I:c:\lanman
DEVICEhigh=c:\lanman\NFS-NDIS.SYS
DEVICEhigh=c:\lanman\ELNK3.DOS
REM ***


rem *
rem *   These statements may be needed for compatability with some MS-DOS
rem *   programs. If you do need these lines just remove the REM and reboot.
rem **
REM DEVICE=C:\DEV\ATAPI_CD.SYS /D:MSCD000 /I:0
***********************************************************************

*********************autoexec.bat**************************************
@ECHO OFF
rem *
rem *   These statements may be needed for compatability with some MS-DOS
rem *   programs. If you do need these lines just remove the REM and reboot.
rem **
C:\WINDOWS\COMMAND\MSCDEX /D:MSCD000 /V
REM                           
REM               
REM                          

PATH C:\NFS;C:\;c:\windows;e:\win32app\salford;c:\windows\command;j:\wp51;c:\winzip;
set temp=c:\temp
lh share /l:500 /f:5100
lh keyb uk,,c:\windows\COMMAND\keyboard.sys

REM *** The following block of lines was added by PC-NFS Configuration.***
SET TZ=GMT0BST
SET NFSLANG=USA
SET NFSPATH=C:\NFS
c:\lanman\NETBIND
SET TN_DIR=C:\NFS\TELNET
SET TNW_DIR=C:\NFS\TELNETW
lh C:\NFS\PRT *
C:\NFS\NET INIT
C:\NFS\RTM
REM ***

REM lh f:\cback\f-prot\virstop /copy
REM cls
REM neton
REM ver

c:\exceedw\sundll\nfsapi
SET WITHOME=C:\WIT
SET WITUSR=C:\WIT
SET GHOME=C:\WIT\G
SET GARCH=win32
SET TMP=C:\WINDOWS\TEMP

SET DJGPP=C:\DJGPP\DJGPP.ENV
SET PATH=C:\DJGPP\BIN;%PATH%
***********************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019