From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6241 invoked by alias); 22 Jan 2008 02:35:59 -0000 Received: (qmail 6233 invoked by uid 22791); 22 Jan 2008 02:35:58 -0000 X-Spam-Check-By: sourceware.org Received: from smtp122.sbc.mail.sp1.yahoo.com (HELO smtp122.sbc.mail.sp1.yahoo.com) (69.147.64.95) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 22 Jan 2008 02:35:31 +0000 Received: (qmail 44275 invoked from network); 22 Jan 2008 02:35:29 -0000 Received: from unknown (HELO ?172.17.150.237?) (timothyprince@sbcglobal.net@63.81.41.227 with plain) by smtp122.sbc.mail.sp1.yahoo.com with SMTP; 22 Jan 2008 02:35:29 -0000 X-YMail-OSG: 0rw3XbEVM1kK5MCy65JwVHIQ74lH846OIr8SYggWMLHyAaD9Pe7dh_SJ.Vp.Hd5UOYaDd9hiTg-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4795566E.5080109@myrealbox.com> Date: Tue, 22 Jan 2008 20:12:00 -0000 From: Tim Prince User-Agent: Thunderbird 2.0.0.9 (X11/20070801) MIME-Version: 1.0 To: Tom Browder CC: Usha Govindarajulu , gcc-help@gcc.gnu.org Subject: Re: g77 compiler References: <8bc817ee0801211746x3c890839l71619392f2b63bc9@mail.gmail.com> In-Reply-To: <8bc817ee0801211746x3c890839l71619392f2b63bc9@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00206.txt.bz2 Tom Browder wrote: > On Jan 21, 2008 3:58 PM, Usha Govindarajulu wrote: >> Hi, >> I am trying to use the g77 program to compile multiple .f files with one >> main file, i.e.: >> >> g77 -o Makefile beta.f set_up.f final.f >> >> I would like to know how to output the error messages that appear on the >> screen to a text file. I tried what was suggested with -e errfile but >> this did not work. I appreciate your help. > > If you're using *nix and a c shell you can do: > > % g77 ... >& compile.log > > and all stdout and stder will be captured in file 'compile.log'. > > If you're a bash user you can do: > > % g77 ... > compile.log 2>&1 > > to do the same thing. > > Good luck if you're on Windows. > For any version of Windows cmd shell which didn't go off support at least 2 years ago, it's the same as the suggestion for bash.