From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: Write GCC-Output into File Date: 16 Mar 2000 13:43:28 -0800 Organization: InterWorld Communications Lines: 23 Message-ID: <83zorypp4v.fsf@mercury.st.hmc.edu> References: <200003161734 DOT SAA17873 AT statistik DOT cinetic DOT de> NNTP-Posting-Host: mercury.st.hmc.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: nntp1.interworld.net 953243121 78569 134.173.45.219 (16 Mar 2000 21:45:21 GMT) X-Complaints-To: usenet AT nntp1 DOT interworld DOT net NNTP-Posting-Date: 16 Mar 2000 21:45:21 GMT User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Alex Gevatter" writes: > Hello DJGPP-Gurus! > > How can I force the GCC-Compiler to put the output-messages (e.g. > warnings, errors) into a file instead of the screen? > I'm using Windows 98 respectively DOS. > I tried > gcc myfile.c > results.txt > but it doesn't work. The file "results.txt" has been created, but it is > empty (0 Bytes), the error-messages are written to the screen. > Is there an option, that forces the GCC to write the messages into a > file? > Please help me, I am desperate! DJGPP includes a command called `redir' that will do this. I think the syntax in this case would be `redir -e results.txt gcc myfile.c'. Anyway, there's documentation under Utilities. -- Nate Eldredge neldredge AT hmc DOT edu