Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: "Ajit George" <gajit@kurianinc.com>
To: <JSONCRAIG@aol.com>, <cygwin@sourceware.cygnus.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
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
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@sourceware.cygnus.com
[mailto:cygwin-owner@sourceware.cygnus.com] On Behalf Of JSONCRAIG@aol.com
Sent:	Tuesday, September 28, 1999 7:03 PM
To:	cygwin@sourceware.cygnus.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@sourceware.cygnus.com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

