Mail Archives: djgpp/1998/03/06/15:44:33
Piter DOT Leal AT Alltel DOT com wrote:
> DJGPP:
:-))
> I've been trying to pipe the output of a C++ compilation to a file called
> 'out.txt' so that it can be printed out, but it comes out empty.
>
> I've tried gcc -c -Wall (program_name).cc > out.txt and
> gcc -c -Wall (program_name).cc | out.txt but they don't work.
>
> I looked for printing switches for gcc but it seems that they don't exist.
> Could you help me on this??
What exactly do you want?
If you want the assembler then use -S.
If you want the preprossesor output use -E.
In both cases indicate the output file with -o name
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -