[Dev-sig] Simpleton question

Dustin Laurence dustin at laurences.net
Thu Apr 27 15:55:39 PDT 2006


On Thu, Apr 27, 2006 at 03:28:31PM -0700, Michael Proctor-Smith wrote:

> On 4/27/06, juanslayton at dialup4less.com <juanslayton at dialup4less.com> wrote:

> > I have a source file for which gcc gives ?? pages of diagnostic
> > errors.  These flash by at light speed, leaving me with the end of
> > the list.  I want to look at the beginning.  For some reason
> > -Wfatal-errors, which is supposed to hold things up after the first
> > error, seems to have no effect.  I tried putting a real error, such
> > as an undeclared variable, at various places in the source file, and
> > -Wfatal-errors stopped it there every time, no matter where I put
> > it, without printing any of the other diagnostic errors.

Some errors confuse the parser to the extent that you can get a huge
cascade of messages from one real error.  I have a vague memory that
this is more true of C++ than C--which language is the source in?

> I don't know but some flags have changed names or been dropped with
> gcc version changes.  Chances are that gcc outputs to stderr instead
> of stdout so gcc flagsAndFile 1> stdout.log 2> stderr.log

Yeah, what he said.  I think >& or some such redirects both to the same
file, if you prefer that.

Dustin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.sgvlug.net/pipermail/dev-sig/attachments/20060427/64602881/attachment.bin


More information about the Dev-sig mailing list