Having trouble using the DS3231.h library

sterretje:
You can try

DS3231  rtc();

I think that's a prototype for a function that takes no arguments and returns a value of type DS3231. Pretty sure it should be:

DS3231  rtc;