Mail Archives: djgpp/2000/10/30/13:46:55
X-Originating-IP: | [24.27.76.111]
|
From: | "Tom Hutto" <huttothomas AT hotmail DOT com>
|
To: | "DJGPP" <djgpp AT delorie DOT com>
|
Subject: | Runtime mystery
|
Date: | Mon, 30 Oct 2000 12:47:03 -0600
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 5.50.4133.2400
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400
|
Message-ID: | <OE2s4nLLW94lJ7tUUQD00003408@hotmail.com>
|
X-OriginalArrivalTime: | 30 Oct 2000 18:46:05.0288 (UTC) FILETIME=[A8A44680:01C042A1]
|
Reply-To: | djgpp AT delorie DOT com
|
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
- Raw text -