delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/16/12:02:43

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Michael Sisco" <michael DOT sisco AT qtiworld DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <001601c19e8a$a314a840$dbe0a0c8 AT rjo DOT virtua DOT com DOT br>
Subject: Re: Redirecting GCC's Errors Message.
Date: Wed, 16 Jan 2002 10:21:51 -0600
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 161.49.70.118
Message-ID: <3c45a893$1@news.qgraph.com>
X-Trace: news.qgraph.com 1011198099 161.49.70.118 (16 Jan 2002 10:21:39 -0600)
Organization: Quad/Graphics,Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

gcc sends its output to stderr, not stdout, and DOS' > redirector doesn't
redirect stderr.

Use redir.exe in the djgpp directory.

Hope this helps,

Michael

"Pedro Izecksohn" <izecksohn AT yahoo DOT com> wrote in message
news:001601c19e8a$a314a840$dbe0a0c8 AT rjo DOT virtua DOT com DOT br...
>    Hi, Sorry for that I ask too many questions. I'm only a few days in
this
> list and I already asked 2 questions, and this is my third. Thank to all
you
> that answer the questions of the beginners in this list.
>    Now let me write my problem:
>
>    How is it possible to redirect the errors message that is outputed from
> GCC at the standart output, to a file ? Because
>
> gcc -Wall -o test.exe test.c > errors.txt
>                           or
> gcc -Wall -o test.exe test.c >> errors.txt
>
> do not works.
>
>    It is needed when there are too many lines in the errors message, and
the
> screen runs and it is impossible to read the begining of the errors
message.
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019