Date: Sun, 19 Jan 1997 13:21:05 +0200 (IST) From: Eli Zaretskii To: Jan Louwerens cc: djgpp AT delorie DOT com Subject: Re: How do I re-direct errors/warnings to file? In-Reply-To: <5bse1v$q9l@waldorf.csc.calpoly.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 19 Jan 1997, Jan Louwerens wrote: > : How do I direct the errors/warnings that are created after compile, > : to a file? > > : I tried something like this at the prompt: > : gxx -o tb.exe tb.cpp window.cpp -lgrx20 >ERRORS > > the > only pipes stdout to a file. > use >& to pipe stdout and stderr to a file This only works with shells that know how to do such magic. COMMAND.COM doesn't. If you work with COMMAND.COM, use the `redir' program which comes with DJGPP: redir -o ERRORS -eo gxx -o tb.exe tb.cpp window.cpp -lgrx20 Another way is to use an editor which lets you compile from within it, then save the output to a file.