ds3231

hi... i used the library 'RTC_ds3231'. yesterday i tried to update the Arduino's version and this library was erased. I didn't success to find this library again so i tried to use 'ds3231', who supposed to be the new version of this library. the problem is that i get many error messages.

Arduino: 1.8.10 (Windows 7), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

In file included from C:\Users\Maish\Documents\Arduino\astro_pgm\astro_pgm.ino:6:0:

C:\Program Files (x86)\Arduino\libraries\DS3231-1.0.2/DS3231.h:27:7: error: redefinition of 'class DateTime'

class DateTime {

^~~~~~~~

In file included from C:\Users\Maish\Documents\Arduino\astro_pgm\astro_pgm.ino:3:0:

C:\Program Files (x86)\Arduino\libraries\RTClib-1.3.1/RTClib.h:52:7: note: previous definition of 'class DateTime'

class DateTime {

^~~~~~~~

C:\Users\Maish\Documents\Arduino\astro_pgm\astro_pgm.ino: In function 'void setup()':

astro_pgm:95:15: error: 'class RTC_DS3231' has no member named 'isrunning'

if (!RTC.isrunning()) {

^~~~~~~~~

Multiple libraries were found for "Adafruit_GFX.h"
Used: C:\Program
Multiple libraries were found for "Adafruit_SSD1306.h"
Used: C:\Program
Multiple libraries were found for "SPI.h"
Used: C:\Program
Multiple libraries were found for "Wire.h"
Used: C:\Program
Multiple libraries were found for "RTClib.h"
Used: C:\Program
Multiple libraries were found for "TimeLib.h"
Used: C:\Program
Multiple libraries were found for "DS3231.h"
Used: C:\Program
exit status 1
'class RTC_DS3231' has no member named 'isrunning'

i don't know to explain why "miltiple libraries were found...". i use only one library from each type.
what should i to do to solve these problems?
thank you for your help!

RTClib and DS3231 library both define DateTime class. Do you need both libraries?

i don't know to explain why "miltiple libraries were found...". i use only one library from each type.

The IDE looks at several places for libraries. It seems you installed several versions in different places. The IDE chooses one, so if the one it chose is current that shouldn't be a bigger problem.