Mail Archives: djgpp/1996/06/07/23:54:26
Reply to message 8703141 from J_BOND_007 AT US on 06/06/96 9:11PM
>How do I get the DJGPP compiler to output
>the compiler listing to a file?
What listing are you trying to get? The messages gcc prints when
it compiles your program, or the output from your program? To do
the former, simply use the 'redir' command to pipe output to the
file like so:
redir -o gcc.out -eo gcc -g -o foo.exe foo.c
Look at the docs for redir for an explanation. If you want to get your
program's output, you can do the same thing with it.
Getting programs to output to both the screen and a file at the same
time can get interesting, though. If that's what you want, it'd take
something a lot heavier than a simple command-line switch.
John
P.S.: What's with the name?!
- Raw text -