This is the mail archive of the
mailing list for the GCC project.
g++ and stdout strangeness
- To: gcc at gcc dot gnu dot org
- Subject: g++ and stdout strangeness
- From: Christian Iseli <chris at ludwig-alpha dot unil dot ch>
- Date: Tue, 28 Nov 2000 18:23:22 +0100
I have the following curious behaviour (on my linux/alpha box):
$ gcc -v
Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/2.97/specs
Configured with: ../gcc/configure --prefix=/usr --enable-shared --enable-threads alpha-redhat-linux
gcc version 2.97 20001128 (experimental)
This simple hello world program:
$ cat toto.cc
Compiled with g++:
$ g++ -o toto toto.cc
Appears to work when called as:
But refuses to redirect its output:
$ ./toto >out
$ cat out
$ ls -l out
-rw-r--r-- 1 chris wheel 0 Nov 28 18:18 out
All this with the current GCC from CVS...
The same code compiled as C works as expected.
My glibc is 2.2, and binutils is 2.10.91...
Anybody else can repeat this ?