Path: 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 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