Mail Archives: djgpp/1998/08/02/01:38:16
On 2 Aug 98 at 13:32, Donald McComb wrote:
> Is there a command line argument for gcc which tells the compiler to
> display error messages only one screen at a time? It seems like such a
> trivial problem and it's getting me REALLY annoyed. I've tried using
> piping (ie. 'gcc -c filename.c | more') to no avail - it still does it!
> ARGH!
DOS's command.com can't redirect stderr, and that's where gcc is
sending the error messages. You can use the `redir' utility to
redirect errors either to a file, or to stdout instead. If you
redirect them to stdout, all DOS's redirection and piping will work
again. So for example:
redir -e errors.txt gcc ....
or: redir -eo gcc .... | more
or: redir -o allout.txt -eo gcc .... (all output redirected to the file)
Replace `....' with your command line for gcc. See the DJGPP FAQ
(section 6.10) for more informaiton.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -