Mail Archives: djgpp/2000/10/31/11:52:51
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 <huttothomas AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
To: DJGPP <djgpp AT delorie DOT com>
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
>
>
>
- Raw text -