DS3231_simple:12:8: error: ‘DS3231 clock’ redeclared as different kind of symbol DS3231 clock;

As a guess because you have not posted your sketch (HINT !), you have an object named DS3231 and a variable or function of the same name. Try changing the name of the clock object

BTW the link that you posted does not work