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
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