delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/28/20:15:43

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Ajit George" <gajit AT kurianinc DOT com>
To: <JSONCRAIG AT aol DOT com>, <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Ouptput question
Date: Tue, 28 Sep 1999 19:13:51 -0500
Message-ID: <000201bf0a0f$825ec7a0$830120d0@abita.kurianinc.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Importance: Normal
In-Reply-To: <144d37d0.2522b142@aol.com>

Errors get printed to stderr, not stdout.  The following should work:

c++ foo.exe foo.cpp > out.txt 2>&1

Ajit

-----Original Message-----
From:	cygwin-owner AT sourceware DOT cygnus DOT com
[mailto:cygwin-owner AT sourceware DOT cygnus DOT com] On Behalf Of JSONCRAIG AT aol DOT com
Sent:	Tuesday, September 28, 1999 7:03 PM
To:	cygwin AT sourceware DOT cygnus DOT com
Subject:	Ouptput question

This may sound really stupid but I can't get the output from compiling
(warnings, erros, etc.) to be put into a text file.  I'm guessing it has
something to do with c++.exe passing execution to cc1plus.exe.

Anyway, I've tried the following to no avail:
  $ c++ -o foo.exe foo.cpp > out.txt
  $ c++ -o foo.exe foo.cpp >> out.txt

This sounds like a real beginner problem, but I still can't figure it out
and
with STLs many templates getting expanded in a few compile-time errors, it's
not rare to have an error go over 4 screens of info.

Thanks,
Jason

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019