delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/06/15:44:33

Message-Id: <m0yAyI1-000S2iC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Piter DOT Leal AT Alltel DOT com, djgpp AT delorie DOT com
Date: Fri, 6 Mar 1998 17:41:00 +0000
MIME-Version: 1.0
Subject: Re: Have a question about printing compilation output, please!!
In-reply-to: <852565BF.006AEFFD.00@ALLTEL.COM>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019