Currently I am working on developing a stop watch using StopWatch libraries. I faced few issues with my own code due to the compiling errors. i tried with one of the dummy programs available in the Arduino homepage.
Compiling the same code available in the web page gives me this error:
Please let me know what is the reason for this error. Thanks in advance
I had placed the StopWatch.h and .cpp files in the libraries folder. i copied these library files from the webpage
"Arduino Playground - Stopwatch"
#####################################################################
sketch_dec28a.cpp.o: In function __static_initialization_and_destruction_0': C:\Program Files\Arduino/sketch_dec28a.ino:6: undefined reference to
StopWatch::StopWatch(StopWatch::Resolution)'
C:\Program Files\Arduino/sketch_dec28a.ino:7: undefined reference to StopWatch::StopWatch(StopWatch::Resolution)' C:\Program Files\Arduino/sketch_dec28a.ino:8: undefined reference to
StopWatch::StopWatch(StopWatch::Resolution)'
sketch_dec28a.cpp.o: In function StopWatch::elapsed()': C:\Users\user\Documents\Arduino\libraries\StopWatch/StopWatch.h:28: undefined reference to
StopWatch::value()'
C:\Users\user\Documents\Arduino\libraries\StopWatch/StopWatch.h:28: undefined reference to StopWatch::value()' C:\Users\user\Documents\Arduino\libraries\StopWatch/StopWatch.h:28: undefined reference to
StopWatch::value()'
C:\Users\user\Documents\Arduino\libraries\StopWatch/StopWatch.h:28: undefined reference to StopWatch::value()' C:\Users\user\Documents\Arduino\libraries\StopWatch/StopWatch.h:28: undefined reference to
StopWatch::value()'
sketch_dec28a.cpp.o:C:\Users\user\Documents\Arduino\libraries\StopWatch/StopWatch.h:28: more undefined references to StopWatch::value()' follow sketch_dec28a.cpp.o: In function
setup':
C:\Program Files\Arduino/sketch_dec28a.ino:13: undefined reference to StopWatch::start()' C:\Program Files\Arduino/sketch_dec28a.ino:14: undefined reference to
StopWatch::start()'
C:\Program Files\Arduino/sketch_dec28a.ino:15: undefined reference to `StopWatch::start()