This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error messages


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]