Article View: gnu.gcc.help
Article #50012Re: Redirect error message for djgpp
From: Eric L. Heft
Date: Fri, 26 Nov 1993 17:12
Date: Fri, 26 Nov 1993 17:12
28 lines
1687 bytes
1687 bytes
Fergus Henderson (fjh@munta.cs.mu.OZ.AU) wrote: : peterx@swordfish.EECS.Berkeley.EDU (Peter Xiao) writes: : >Hi, there, : > : >I am wondering what's the correct way to redirect error messages for : >gcc.exe in the djgpp package. : >I tried: : >gcc foo.c >> err : > : >but it complains >> and err files not found. : Redirection is handled by your command shell - probably DOS's : COMMAND.COM in your case - not by gcc. DOS doesn't understand : all the redirection options than unix shells understand. : Try using just a single `>'. If djgpp were writting to stdout then gcc [...] > err would work nicely, however it prints the errors to stderr so DOS will only redirect the stdout to err, thus you get part of the compilation :( I don't know a good solution to the problem, if any one has any ideas please post !! (or e-mail of course >:> ) : -- : Fergus Henderson fjh@munta.cs.mu.OZ.AU -- Eric eheft@wright.edu
Technical Details
Message-ID:
<CH3zsw.GLw@mercury.wright.edu>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!sol.ctr.columbia.edu!caen!malgudi.oar.net!mercury.wright.edu!discover!eheftReferences:
<2csmgo$jkg@agate.berkeley.edu> <9333101.848@mulga.cs.mu.OZ.AU>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,432f3c3b2fd96ba4 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-26 09:19:23 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!sol.ctr.columbia.edu!caen!malgudi.oar.net!mercury.wright.edu!discover!eheft From: eheft@discover.wright.edu (Eric L. Heft) Subject: Re: Redirect error message for djgpp Message-ID: <CH3zsw.GLw@mercury.wright.edu> Sender: news@mercury.wright.edu (USENET News System) Organization: Wright State University X-Newsreader: TIN [version 1.2 PL1] References: <2csmgo$jkg@agate.berkeley.edu> <9333101.848@mulga.cs.mu.OZ.AU> Date: Fri, 26 Nov 1993 17:12:32 GMT Lines: 28