Error correction assistance

Greetings family can someone assist on how to solve the attached error on this project:
Arduino: 1.8.15 (Windows Store 1.8.49.0) (Windows 10), Board: "Arduino Uno"

In file included from C:\Users\Josep\Downloads\incmaincode_Hogen\incmaincode_Hogen.ino:78:0:

C:\Users\Josep\OneDrive\Documents\Arduino\libraries\DS3232RTC/DS3232RTC.h:136:26: error: 'tmElements_t' has not been declared

     static byte read(tmElements_t &tm);

                      ^~~~~~~~~~~~

C:\Users\Josep\OneDrive\Documents\Arduino\libraries\DS3232RTC/DS3232RTC.h:137:27: error: 'tmElements_t' has not been declared

     static byte write(tmElements_t &tm);

                       ^~~~~~~~~~~~

C:\Users\Josep\Downloads\incmaincode_Hogen\incmaincode_Hogen.ino: In function 'void showclock()':

incmaincode_Hogen:1843:8: error: request for member 'getTime' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

clock.getTime();

    ^~~~~~~

incmaincode_Hogen:1845:12: error: request for member 'hour' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

if (clock.hour < 10) {

        ^~~~

incmaincode_Hogen:1848:18: error: request for member 'hour' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

lcd.print(clock.hour, DEC);

              ^~~~

incmaincode_Hogen:1850:12: error: request for member 'minute' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

if (clock.minute < 10) {

        ^~~~~~

incmaincode_Hogen:1853:18: error: request for member 'minute' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

lcd.print(clock.minute, DEC);

              ^~~~~~

incmaincode_Hogen:1855:12: error: request for member 'second' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

if (clock.second < 10) {

        ^~~~~~

incmaincode_Hogen:1858:18: error: request for member 'second' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

lcd.print(clock.second, DEC);

              ^~~~~~

incmaincode_Hogen:1860:12: error: request for member 'month' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

if (clock.month < 10) {

        ^~~~~

incmaincode_Hogen:1863:18: error: request for member 'month' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

lcd.print(clock.month, DEC);

              ^~~~~

incmaincode_Hogen:1865:12: error: request for member 'dayOfMonth' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

if (clock.dayOfMonth < 10) {

        ^~~~~~~~~~

incmaincode_Hogen:1868:18: error: request for member 'dayOfMonth' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

lcd.print(clock.dayOfMonth, DEC);

              ^~~~~~~~~~

incmaincode_Hogen:1870:18: error: request for member 'year' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

lcd.print(clock.year + 2000, DEC);

              ^~~~

C:\Users\Josep\Downloads\incmaincode_Hogen\incmaincode_Hogen.ino: In function 'void turnerCountForDisplay()':

incmaincode_Hogen:1904:8: error: request for member 'getTime' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

clock.getTime();

    ^~~~~~~

incmaincode_Hogen:1906:26: error: request for member 'dayOfMonth' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

prev_clock_day = clock.dayOfMonth;

                      ^~~~~~~~~~

incmaincode_Hogen:1909:30: error: request for member 'dayOfMonth' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

if (prev_clock_day != clock.dayOfMonth) {

                          ^~~~~~~~~~

incmaincode_Hogen:1914:25: error: request for member 'dayOfMonth' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

prev_clock_day = clock.dayOfMonth;

                     ^~~~~~~~~~

C:\Users\Josep\Downloads\incmaincode_Hogen\incmaincode_Hogen.ino: In function 'void clockset()':

incmaincode_Hogen:1982:9: error: request for member 'fillByYMD' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

clock.fillByYMD(set_year, set_month, set_day); //Jan 19,2013

     ^~~~~~~~~

incmaincode_Hogen:1983:9: error: request for member 'fillByHMS' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

clock.fillByHMS(set_hour, set_minute, 30); //15:28 30"

     ^~~~~~~~~

incmaincode_Hogen:1984:9: error: request for member 'fillDayOfWeek' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

clock.fillDayOfWeek(SAT);//Saturday

     ^~~~~~~~~~~~~

incmaincode_Hogen:1984:23: error: 'SAT' was not declared in this scope

clock.fillDayOfWeek(SAT);//Saturday

                   ^~~

incmaincode_Hogen:1985:9: error: request for member 'setTime' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

clock.setTime();//write time to the RTC chip

     ^~~~~~~

Multiple libraries were found for "DS3232RTC.h"

Used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\DS3232RTC

Not used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\DS3232RTC-1.3.0

Multiple libraries were found for "LiquidCrystal_I2C.h"

Used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\LiquidCrystal_I2C

Not used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\LiquidCrystal_I2C-1.1.2

Not used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\LiquidCrystal

Multiple libraries were found for "EEPROM.h"

Used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.49.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM

Not used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\EEPROM-master

Multiple libraries were found for "DHT.h"

Used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\DHT

Not used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\DHT_sensor_library

Not used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\DHT-sensor-library-master

Not used: C:\Users\Josep\OneDrive\Documents\Arduino\libraries\Grove_Temperature_And_Humidity_Sensor

exit status 1

request for member 'getTime' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

incmaincode_Hogen.ino (48.1 KB)

What is the code ending up like this?

Please post the code, using code tags, and tell us which time library you are using (and where you downloaded it).

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.