delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "Markus R. Keßler" <dimke DOT fax AT uni DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Piping gcc output to a file? |
Date: | Wed, 11 Jul 2007 06:49:28 +0100 |
Organization: | SAG |
Lines: | 24 |
Message-ID: | <46946F67.671072E7@uni.de> |
References: | <1184113135 DOT 135541 DOT 268270 AT q75g2000hsh DOT googlegroups DOT com> <200707110044 DOT l6B0imjE022191 AT envy DOT delorie DOT com> |
NNTP-Posting-Host: | demm3wac.ww100.siemens.net |
Mime-Version: | 1.0 |
X-Trace: | daniel-new.mch.sbs.de 1184129367 13853 139.23.232.251 (11 Jul 2007 04:49:27 GMT) |
X-Complaints-To: | abuse AT siemens DOT de |
NNTP-Posting-Date: | Wed, 11 Jul 2007 04:49:27 +0000 (UTC) |
X-Mailer: | Mozilla 4.08 [de] (Win95; U; 16bit) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
DJ Delorie schrieb: > > I can't quite figure out how to pipe gcc output to a file... > > > > gcc main.c > output.txt > > http://www.delorie.com/djgpp/v2faq/faq6_15.html Or in short, if you are working in the (DJGPP) bash instead of command.com-based dos box: gcc file 2> output.txt This redirects file descriptor 2, i.e. STDERR, to output.txt. Best regards, Markus -- Please reply to group only. For private email please use http://www.dipl-ing-kessler.de/email.htm
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |