Mail Archives: djgpp/2000/01/10/13:07:31
On Mon, 10 Jan 2000, Andreas Matthies wrote:
> gcc -c conftest.c 2>conftest.out
> This doesn't seem to work in djgpp. Output is always on screen, even 1>file
> doesn't work. I should mention that I use the bash of cygwin32 in a
> Windows32-environment, where redirection works pretty good. Only the
> compilers are the djgpp one's.
Redirection is performed by the shell, not by GCC. Since you use the
Cygwin port of Bash, I'd say that it's a bug in that port. I just
tried this with the DJGPP port of Bash, and the above command works like
advertised.
I'm speculating that the problem is due to the fact that DJGPP programs
are DOS programs, and Windows runs DOS programs in a separate Virtual
Machine (VM). Redirecting standard streams from a program that runs in
another VM is tricky (for example, Windows 9X loads a special TSR into
the same DOS box to make it work). It seems that the Cygwin port of Bash
doesn't do such trickery on behalf of DOS programs.
- Raw text -