Message-ID: <003001c0435b$3e965b60$1e806f83@quns.cam.ac.uk> From: "Murray Rogers" To: References: Subject: Re: Runtime mystery Date: Tue, 31 Oct 2000 16:54:33 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Reply-To: djgpp AT delorie DOT com is your program actually crashing? If so, try a "\n" at the end of the printf to make sure it flushes the buffer. ----- Original Message ----- From: Tom Hutto Newsgroups: comp.os.msdos.djgpp To: DJGPP Sent: 30 October 2000 18:47 Subject: Runtime mystery > What's going on here? The my program does not work, so I try to debug > it. But gdb hides the error I'm trying to find. > > Maybe I don't know what to look for, but I can't find this problem > referenced in the FAQ nor the archives. I have looked though. > > In MYPROG.C, modify main() so that it has printf("Hello world"); as its > first executable statement. > > > ReCompile MYPROG using gcc via a makefile (30 something *.c and *.h > files) > get no warnings no errors > link step gives no warnings no errors > > At the DOS prompt type MYPROG.EXE and press enter > MYPROG prints nothing to the terminal nor to any file that I can find. > > At the DOS prompt type > gdb MYPROG > type run at the (gdb) prompt. > > MYPROG operates as would be expected under 'normal' circumstances. > > What's going on here? The pgm does not work, so I try to debug it. But > gdb hides the error I'm trying to find. > > > > > TIA and Cheers > Tom Hutto thutto AT houston DOT rr DOT com Houston,Texas USA > "If you can't measure it, you can't control it." - Lord Kelvin > > >