Ouptput question

Ajit George gajit@kurianinc.com
Thu Sep 30 23:42:00 GMT 1999


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



More information about the Cygwin mailing list