I had trouble getting HK's 1307 library to work, even though it compiled. Try this one rather.
Where is the library installed ?
I get error. tmElements_t tm; was not declare in this scope
It is installed in arduino/libraries
Try run the code in the library examples folder.
Can you please give the full path as the Arduino installation has two libraries folders ?
Yes I run the 2 examples in the library. I get both error.