Re: reading from stdin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erik Leunissen wrote:
L.S.

I would like to compile C code by feeding it to gcc (or cc) from stdin, instead of specifying an input file. What I want would result in a command line like:

    echo "ThisWouldNeedToBeCcode" | gcc -o out.o


You could have your program write to a fifo and have gcc read from that. Short of that, the only way to use pipes would be a wrapper script.

LL


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux