From: Charles Terry Newsgroups: comp.os.msdos.djgpp Subject: Re: Have a question about printing compilation output, please!! Date: Fri, 06 Mar 1998 15:09:48 -0800 Organization: All USENET -- http://www.Supernews.com Lines: 31 Message-ID: <3500823C.37C8@plinet.com> References: NNTP-Posting-Host: 25833 AT 207 DOT 174 DOT 3 DOT 244 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Salvador Eduardo Tropea (SET) wrote: > > 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 > or if the output your looking for is the compiler warnings piped to a file- they are printed an stderr which dos won't redirect so- use the program redir(included in the developement kit?) redir -e gcc -c -Wall foo.cc [??] out.txt there may be a switch to designate the output file (where ?? is) sorry but I don't recall. Charles Terry