From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: SIGFPE Date: Mon, 27 Apr 1998 14:38:03 -0400 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 32 Message-ID: <3544D08B.FE3@cam.org> References: <3 DOT 0 DOT 3 DOT 32 DOT 19980427104650 DOT 006936f8 AT ns DOT coba DOT net> NNTP-Posting-Host: dialup-19.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Daniel Delorme wrote: > Put each function in a different file and compile them as a project > (I use RHIDE) and you'll get SIGFPE except if you run the program from > the RHIDE editor under win95. But if you do that, although it won't > crash, the output will be wrong. runs fine for me... first file: #include "stdio.h" double ReturnDouble(int I); main() { int I; double D; for (I=1; I<20; I++) { D = ReturnDouble(I); printf(" %f\n", D); } } second file #include "stdio.h" double ReturnDouble(int I) { printf("%d\n", I); return(I*2); } nice output too.