gcc accepting input from stdin?
Nelson H. F. Beebe
beebe@math.utah.edu
Sat Dec 17 17:59:00 GMT 2005
Erik Leunissen <e.leunissen@hccnet.nl> asks on Sat, 17 Dec 2005 17:11:23
+0100 about which version of gcc introduced the feature that
echo "int main(void) {return 0;}" | gcc -xc -c -
produces a ./-.o file.
The oldest version that I have running is 2.95.3 (26-Apr-2001);
it acts that way (which was a surprise to me).
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- University of Utah FAX: +1 801 581 4148 -
- Department of Mathematics, 110 LCB Internet e-mail: beebe@math.utah.edu -
- 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------
More information about the Gcc-help
mailing list