🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3068

Strange results with Turbo C program - Can you help?

#3068
From: Graham Brand
Date: Fri, 16 Nov 1990 19:04
33 lines
1529 bytes
	I have been trying to port a large C program (actually a set of 
programs) from Unix to MSDOS 3.3 for some time now but without success.
After working around the peculiarities of the turbo C compiler and 
linker I have finally gotten it to compile and link without error. The
problem is now to run it!! When I do, I get the cryptic (unix-like)
error message "Divide error". Please note that this EXACT program worked
on unix without error.

	Not to be put off, I tried using the integrated debugger (I 
don't have the standalone one) and this time got an even stranger
error message:

	Write fault error writing device AUX
	Abort, Retry, Ignore, Fail?
although, I probably did something wrong when using the integrated 
debugger.

Each source file is compiled with the options:
	-1 -mh -K -f -c -y -v

and they are linked with the following options (via a response file):
	/c /v /3 
and the following library files:
	\tc\lib\c0h 
	\tc\lib\emu 
	\tc\lib\mathh 
	\tc\lib\ch

Can anyone shed some light on this perplexing problem?

Cheers,
-Graham
Technical Details
Message-ID: <39630@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!janus.Berkeley.EDU!brand
References: <29857@boulder.Colorado.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!janus.Berkeley.EDU!brand
From: brand@janus.Berkeley.EDU (Graham Brand)
Newsgroups: comp.os.msdos.programmer
Subject: Strange results with Turbo C program - Can you help?
Message-ID: <39630@ucbvax.BERKELEY.EDU>
Date: 16 Nov 90 19:04:35 GMT
References: <29857@boulder.Colorado.EDU>
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: brand@janus.Berkeley.EDU
Lines: 33