Solution for PololuQTRA Arduino Example Does NOT Work

Solution for following error :

 

The standalone Arduino library for QTR sensors has not been updated to work with the Arduino 1.0 environment yet. You  should be able to use this updated version 

 

Error :

D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:36:24: error: WConstants.h: No such file or directory
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp: In member function ‘void PololuQTRSensors::emittersOff()’:
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:125: error: ‘OUTPUT’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:125: error: ‘pinMode’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:126: error: ‘LOW’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:126: error: ‘digitalWrite’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp: In member function ‘void PololuQTRSensors::emittersOn()’:
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:133: error: ‘OUTPUT’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:133: error: ‘pinMode’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:134: error: ‘HIGH’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:134: error: ‘digitalWrite’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp: In member function ‘void PololuQTRSensorsRC::readPrivate(unsigned int*)’:
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:430: error: ‘HIGH’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:430: error: ‘digitalWrite’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:431: error: ‘OUTPUT’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:431: error: ‘pinMode’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:434: error: ‘delayMicroseconds’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:438: error: ‘INPUT’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:438: error: ‘pinMode’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:439: error: ‘LOW’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:439: error: ‘digitalWrite’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:442: error: ‘micros’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:448: error: ‘digitalRead’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:448: error: ‘LOW’ was not declared in this scope
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp: In member function ‘void PololuQTRSensorsAnalog::readPrivate(unsigned int*)’:
D:\Program Files\arduino-1.0-windows\arduino-1.0\libraries\PololuQTRSensors\PololuQTRSensors.cpp:523: error: ‘analogRead’ was not declared in this scope

.