Mail Archives: djgpp/1995/05/02/18:54:28
> I am running the dj gcc compiler under dos. In a certain program, so many
> compiler error messages are generated that the relevant first few messages
> scroll off the screen and are lost. Redirecting the output does not help:
> the messages continue to come to the screen.
The messages are sent to stderr. Possible solutions are in the FAQ
(faq100.zip):
1) You can put ``2r1'' into your GO32 environment variable,
which will redirect stderr to stdout, and redirect stdout to
a file by appending ``> file''to your command line. See
question 5.1 above.
2) You can use a shell smarter then COMMAND.COM, such as 4DOS,
which knows how to redirect standard error stream to a file.
4DOS is shareware and can be found, e.g., on SimTel mirrors.
3) You can add ``core file'' to your GO32 environment variable,
to have your traceback written to the named file. This only
works for the exception traceback redirection (useful when
running graphics applications).
4) You can run your program under any one of the programs which
save the output of programs they spawn in a file. I suggest
using a program called SCRIPT, which is similar to its Unix
namesake. It has an advantage of saving everything which
goes to screen AND showing it on the screen at the same
time. SCRIPT can be found on SimTel mirrors as SCRIPT11.ZIP
(e.g., oak.oakland.edu:/SimTel/msdos/screen/script11.zip).
- Raw text -