Mail Archives: djgpp/2002/01/02/05:18:12
On Wed, 2 Jan 2002, schaecsn wrote:
> that was my intention but most output scrolls away and I have no clue
> how to write the output into a textfile unter dos. the unix way - a
> little bit simplified - doesn't work: gcc -v hello.c > out or gcc -v
> hello.c 2> out).
It will work if you install the ported Bash and invoke the command from
Bash.
ALternatively, the program `redir' supplied with DJGPP can redirect
stderr, like this:
redir -o out -eo gcc -v hello.c
(This is in the FAQ, btw.)
> attempt to open c:/djgpp/lib/libgcc.a failed
> attempt to open c:/djgpp/lib/gcc-lib/djgpp/3.03/libgcc.a failed
> attempt to open c:/djgpp/bin/libgcc.a failed
> attempt to open c:/djgpp/lib/libgcc.a failed
Hmm... that's strange.
What if you modify the compilation command like this (this is one long
line):
gcc hello.c c:/djgpp/lib/gcc-lib/djgpp/3.03/libgcc.a \
c:/djgpp/lib/libc.a c:/djgpp/lib/gcc-lib/djgpp/3.03/libgcc.a
Does it work then?
- Raw text -