Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" 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 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Have a question about printing compilation output, please!! In-reply-to: <852565BF.006AEFFD.00@ALLTEL.COM> Precedence: bulk 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