error messages
Ian Lance Taylor
iant@google.com
Tue Jul 7 14:21:00 GMT 2009
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
More information about the Gcc-help
mailing list