Mail Archives: djgpp/1998/07/15/04:04:49
On 15 Jul 1998, DBA GPC wrote:
> when i receive an error or message, the line number reported in the message
> does not match the line number in the source file. I have noticed that a blank
> line is not counter by the compiler, and this makes it very very difficult to
> locate compiler errors because the compiler line number and rhide editor line
> number do not match.
Please tell which version of GCC do you use, and post a short source file
that can be used to reproduce this problem, together with an
error/warning message printed by the compiler which shows the line number
mismatch.
AFAIK, GCC *does* count blank lines. It is possible that in your case,
it reports a line where it decided that there is an error, which is
different from the line where you need to correct the source, because a
compiler cannot always guess what the actual error is. This is quite
normal.
- Raw text -