compile erros and warnings reference incorrect line number

Due to the inclusion by the IDE of

#include "Arduino.h"

as well as function headers for setup,loop and every defined function,
error and warning messages reference a line number different than the line in the .ino source.
For errors it seems that the line number as displayed in the compilation window is only off by one.
For example: oid:9: error: 'xx' was not declared in this scope the error in the oid source file is actually on line 10.
For warnings the message (subtlety) references the .cpp file and is off by the number of functions defined in the sketch! for example: oid.cpp:20: warning: comparison between signed and unsigned integer expressions

Can this be corrected??

example source file at http://Real-World-Systems.com/docs/arduino/oid.ino

dgerman:
Due to the inclusion by the IDE of

#include "Arduino.h"

as well as function headers for setup,loop and every defined function,
error and warning messages reference a line number different than the line in the .ino source.
For errors it seems that the line number as displayed in the compilation window is only off by one.
For example: oid:9: error: 'xx' was not declared in this scope the error in the oid source file is actually on line 10.
For warnings the message (subtlety) references the .cpp file and is off by the number of functions defined in the sketch! for example: oid.cpp:20: warning: comparison between signed and unsigned integer expressions

Can this be corrected??

example source file at http://Real-World-Systems.com/docs/arduino/oid.ino

I tested your file and the error appears over the correct line (highlighted). Maybe it is something with version 1.0 fixed on 1.0.1 ?

Wait a minute! :~


I notice your title shows 1.0.1a. I'm on a Mac OSX 1.0.1-rc2

Can you please set preferences, verbose output during compilation; so I can see warnings and associated line numbers.

dgerman:
Wait a minute! :~


I notice your title shows 1.0.1a. I'm on a Mac OSX 1.0.1-rc2

Can you please set preferences, verbose output during compilation; so I can see warnings and associated line numbers.

It is the 1.0.1, I just edited the version for a "mod" I am working on. But compilation does not have any modification, here is the verbose output:

C:\Program Files (x86)\Arduino\Arduino ERW 1.0.1a\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\Program Files (x86)\Arduino\Arduino ERW 1.0.1a\hardware\arduino\cores\arduino -IC:\Program Files (x86)\Arduino\Arduino ERW 1.0.1a\hardware\arduino\variants\standard C:\Users\ERWINR~1\AppData\Local\Temp\build764221259285702355.tmp\sketch_aug24a.cpp -o C:\Users\ERWINR~1\AppData\Local\Temp\build764221259285702355.tmp\sketch_aug24a.cpp.o 
sketch_aug24a.ino: In function 'void loop()':
sketch_aug24a.ino:10: error: 'xx' was not declared in this scope

:open_mouth:
Interesting the verbose output you show doesn't even display about the
warning about the signed and unsigned comparison, It should!