This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: error messages
- From: Ian Lance Taylor <iant at google dot com>
- To: Mike Reed <gnu at amadron dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 07 Jul 2009 07:21:13 -0700
- Subject: Re: error messages
- References: <1246963582.3423.11.camel@Darkone>
Mike Reed <gnu@amadron.com> writes:
> $ g++ -c -o Viewer.o Viewer.cpp
> In file included from Viewer.cpp:1:
> Viewer.h:4:23: error: gtkmm/box.h: No such file or directory
>
> I can see from the source that the #include occurs on line 4 of Viewer.h
> but what is the 23? I only seem to get this second number on "No such
> file or directory" messages. In the GCC documentation it only mentions
> filename and line number being given, no mention of a possible second
> number or what it is.
23 is the column number (which is fairly useless for a #include
directive). In current releases gcc displays the column number for
preprocessor errors and warnings. The future gcc 4.5.0 will (by
default) display a column number for all messages, not just preprocessor
ones.
Ian