Go Down

Topic: Library for DS1307 Real Time Clock (Read 42679 times) previous topic - next topic

mrnick1234567

Great work guys, got my DS1307 up and running in no time. Thanks for all the effort!




Peter_B

Hi;
I'm trying to compile the RTC example from the reference library and I am getting a complie error like "C:\DOCUME~1\Peter\LOCALS~1\Temp\build1739880429809810608.tmp/TimeRTC.cpp:18: undefined reference to `setSyncProvider(unsigned long (*)())' "

I think this is because I have the DS1307.cpp and DS1307.h files in the wrong folders, antone here can point me in the right direction.
There is advice that says they should be in the arduino\hardware\libraries\DS1307 folder which I must create?
Why do they not go into the main libraries folder with the rest of the provided libraries?
Apologies if this stuff has been covered elsewhere. :-X

Peter B.
peter_b

PaulS

#107
May 12, 2010, 02:36 pm Last Edit: May 12, 2010, 02:37 pm by PaulS Reason: 1
@Peter_B
Where the libraries go depends on the operating system and the version of the Arduino IDE you are using.

But, in order to display the message you are seeing, the .h file had to have been read, so it must have been in the right place.

What does your sketch look like?

mem

#108
May 12, 2010, 03:54 pm Last Edit: May 12, 2010, 03:56 pm by mem Reason: 1
Peter_B, the RTC library posted in this thread does not have a setSyncProvider function.

Are you trying to run the example sketch that comes with the Time library in the playground?
http://www.arduino.cc/playground/Code/Time

Go Up