User avatar
By OldBikerPete
#48250 Thank you for your responses. I enabled verbose output during compile and noted that Time.h was not being loaded. Suspecting a name conflict with time.h (Windows is case-insensitive in file names) I renamed the Time library to ArduTime and it's members to ArduTime.h and ArduTime.cpp, changing also the name in the #include statements where necessary.

The compile now picked up the ArduTime library and a missing definition in the ArduTime header file. Fixed that and now all is good.

The fact that the compiler did not complain about the name conflict would have to be regarded as a compiler bug.
User avatar
By OldBikerPete
#55664 Found the cause of the problem.
The DS1307 library uses Time.h
There is a time.h which is part of the IDE and Windows is not case-sensitive in file names, so we get a conflict.

I edited the DS1307 library to be ArduTime.h instead - problem gone!

Peter.