Mail Archives: djgpp/1997/01/19/06:35:08
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.
- Raw text -