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 expressionsCan this be corrected??example source file at http://Real-World-Systems.com/docs/arduino/oid.ino
Wait a minute! :~I notice your title shows 1.0.1a. I'm on a Mac OSX 1.0.1-rc2Can you please set preferences, verbose output during compilation; so I can see warnings and associated line numbers.
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
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16