This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Ouptput question
- To: <JSONCRAIG at aol dot com>,<cygwin at sourceware dot cygnus dot com>
- Subject: RE: Ouptput question
- From: "Ajit George" <gajit at kurianinc dot com>
- Date: Tue, 28 Sep 1999 19:13:51 -0500
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