[SOLVED] Problem compiling code with DS3231 library

I discovered a “new” library for DS3231 RTC:

However, when i try to compile any of the examples for arduino uno board (by the use of arduino 1.0.5 IDE), it returns many errors. For example, these are the errors when i try to compile the simple example:

[DS3231_alarm:13: error: ‘RTCDateTime’ does not name a type
DS3231_alarm.ino: In function ‘void setup()’:
DS3231_alarm:21: error: ‘class DS3231’ has no member named ‘begin’
DS3231_alarm:25: error: ‘class DS3231’ has no member named ‘armAlarm1’
DS3231_alarm:26: error: ‘class DS3231’ has no member named ‘armAlarm2’
DS3231_alarm:27: error: ‘class DS3231’ has no member named ‘clearAlarm1’
DS3231_alarm:28: error: ‘class DS3231’ has no member named ‘clearAlarm2’
DS3231_alarm:31: error: ‘class DS3231’ has no member named ‘setDateTime’
DS3231_alarm:45: error: ‘class DS3231’ has no member named ‘setAlarm1’
DS3231_alarm:45: error: ‘DS3231_MATCH_S’ was not declared in this scope
DS3231_alarm:49: error: ‘class DS3231’ has no member named ‘setAlarm2’
DS3231_alarm:49: error: ‘DS3231_MATCH_M’ was not declared in this scope
DS3231_alarm.ino: In function ‘void checkAlarms()’:
DS3231_alarm:73: error: ‘RTCAlarmTime’ was not declared in this scope
DS3231_alarm:73: error: expected ;' before 'a1' DS3231_alarm:74: error: expected ;’ before ‘a2’
DS3231_alarm:76: error: ‘class DS3231’ has no member named ‘isArmed1’
DS3231_alarm:78: error: ‘a1’ was not declared in this scope
DS3231_alarm:78: error: ‘class DS3231’ has no member named ‘getAlarm1’
DS3231_alarm:81: error: ‘class DS3231’ has no member named ‘getAlarmType1’
DS3231_alarm:83: error: ‘DS3231_EVERY_SECOND’ was not declared in this scope
DS3231_alarm:86: error: ‘DS3231_MATCH_S’ was not declared in this scope
DS3231_alarm:88: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:90: error: ‘DS3231_MATCH_M_S’ was not declared in this scope
DS3231_alarm:92: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:94: error: ‘DS3231_MATCH_H_M_S’ was not declared in this scope
DS3231_alarm:96: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:98: error: ‘DS3231_MATCH_DT_H_M_S’ was not declared in this scope
DS3231_alarm:100: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:102: error: ‘DS3231_MATCH_DY_H_M_S’ was not declared in this scope
DS3231_alarm:104: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:115: error: ‘class DS3231’ has no member named ‘isArmed2’
DS3231_alarm:117: error: ‘a2’ was not declared in this scope
DS3231_alarm:117: error: ‘class DS3231’ has no member named ‘getAlarm2’
DS3231_alarm:120: error: ‘class DS3231’ has no member named ‘getAlarmType2’
DS3231_alarm:122: error: ‘DS3231_EVERY_MINUTE’ was not declared in this scope
DS3231_alarm:125: error: ‘DS3231_MATCH_M’ was not declared in this scope
DS3231_alarm:127: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:129: error: ‘DS3231_MATCH_H_M’ was not declared in this scope
DS3231_alarm:131: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:133: error: ‘DS3231_MATCH_DT_H_M’ was not declared in this scope
DS3231_alarm:135: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:137: error: ‘DS3231_MATCH_DY_H_M’ was not declared in this scope
DS3231_alarm:139: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm.ino: In function ‘void loop()’:
DS3231_alarm:153: error: ‘dt’ was not declared in this scope
DS3231_alarm:153: error: ‘class DS3231’ has no member named ‘getDateTime’
DS3231_alarm:155: error: ‘class DS3231’ has no member named ‘dateFormat’
DS3231_alarm:158: error: ‘class DS3231’ has no member named ‘isAlarm1’
DS3231_alarm:164: error: ‘class DS3231’ has no member named ‘isAlarm2’
/quote]

However, all those members are already described in the cpp file of the library.
The library is saved at the libraries folder such as the other libraries.

I don´t know why it does not compiles for me…
Any idea? Thanks!

Do you, perhaps, have the old DS3231 library still installed?

OMG!! :blush:

yes, i had, but i changed the name of the library folder to "DS3231_old". Now i see it was not enough! I completely removed the old library and t works perfect!

Thanks so much!