| delorie.com/archives/browse.cgi | search |
| From: | Charles Terry <cterry AT plinet DOT com> |
| 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: | <m0yAyI1-000S2iC AT inti DOT gov DOT ar> |
| NNTP-Posting-Host: | 25833 AT 207 DOT 174 DOT 3 DOT 244 |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |