[Dev-sig] Simpleton question

Michael Proctor-Smith mproctor13 at gmail.com
Thu Apr 27 15:28:31 PDT 2006


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.
>
> There has got to be a simple way to stick those messages in a file for later examination, but I confess I don't know how.  Piping to less or more doesn't seem to work.

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


More information about the Dev-sig mailing list