In trying to debug some RTC code I am working on, I decided to go back to the basics and pasted the code from the TimeRTC.pde example that is included in the Time library download, but I can't get it to compile. I am getting the following messages:
In file included from Simple_RTC.cpp:9:
/Documents/Arduino/libraries/DS1307RTC/DS1307RTC.h:17: error: 'time_t' does not name a type
/Documents/Arduino/libraries/DS1307RTC/DS1307RTC.h:18: error: 'time_t' has not been declared
/Documents/Arduino/libraries/DS1307RTC/DS1307RTC.h:19: error: 'tmElements_t' has not been declared
/Documents/Arduino/libraries/DS1307RTC/DS1307RTC.h:20: error: 'tmElements_t' has not been declared
Simple_RTC.cpp: In function 'void setup()':
Simple_RTC:12: error: 'class DS1307RTC' has no member named 'get'
Simple_RTC:12: error: 'setSyncProvider' was not declared in this scope
Simple_RTC:13: error: 'timeStatus' was not declared in this scope
Simple_RTC:13: error: 'timeSet' was not declared in this scope
Simple_RTC.cpp: In function 'void digitalClockDisplay()':
Simple_RTC:27: error: 'hour' was not declared in this scope
Simple_RTC:28: error: 'minute' was not declared in this scope
Simple_RTC:29: error: 'second' was not declared in this scope
Simple_RTC:31: error: 'day' was not declared in this scope
Simple_RTC:33: error: 'month' was not declared in this scope
Simple_RTC:35: error: 'year' was not declared in this scope
The libraries, Wire, Time and DS1307RTC have been imported. I have tried refreshing the libraries to see if they have changed but still nothing.