From: utzoo!decvax!harpo!eagle!mhtsa!alice!alb
Newsgroups: net.lang.c
Title: Re: redirecting C error messages
Article-I.D.: alice.1504
Posted: Wed Feb 16 14:36:51 1983
Received: Mon Feb 21 07:59:48 1983
References: spanky.209

That's because cc prints its error messages on stderr, nor stdout.
Say:
cc * 2>file
to redirect them.  This also means you have to say:
cc * 2>&1 | error
to pipe them into error (for example)