public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Warning and error External file
@ 2006-11-11 15:43 shart
  2006-11-11 15:51 ` John (Eljay) Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: shart @ 2006-11-11 15:43 UTC (permalink / raw)
  To: gcc-help


Hi,
is possible to compile a program c or c++ and write error or warning into a
external text file?
thanks
-- 
View this message in context: http://www.nabble.com/Warning-and-error-External-file-tf2613302.html#a7293755
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Warning and error External file
  2006-11-11 15:43 Warning and error External file shart
@ 2006-11-11 15:51 ` John (Eljay) Love-Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: John (Eljay) Love-Jensen @ 2006-11-11 15:51 UTC (permalink / raw)
  To: shart, gcc-help

Hi shart,

> is possible to compile a program c or c++ and write error or warning into a external text file?

Yes.

gcc -o Foo Foo.c >gcc.out 2>gcc.err

HTH,
--Eljay

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-11 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-11 15:43 Warning and error External file shart
2006-11-11 15:51 ` John (Eljay) Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).