Mail Archives: djgpp/1998/07/19/11:10:41
On Sun, 19 Jul 1998, Pat O'Hara wrote:
> So being a
> Unix hack I figured I'ld go out to the command line and run gcc -o
> Main.exe Main.c 2> projerr.txt. This also did not capture the output.
DOS shell doesn't know how to redirect stderr, so it doesn't understand
2> and its ilk.
You need to use the `redir' program which comes with DJGPP. It is
documented in the utils.inf Info file. For example, the following will
run gcc with stderr redirected to stdout:
redir -eo gcc -c foo.c
But I would first try to find out whether there is an option to tell your
editor that compiler messages are coming from stderr, not stdout. I
could hardly believe that GCC is the only compiler which works that way.
- Raw text -