Closed rozrabiak closed 3 years ago
Hi @rozrabiak I've rebuilt RTC library and did not reproduce your issue. I know it's build because I've made a full non reg build for the latest core release 2.0.0 with all up to date libraries. You can check the full log available in the assets of the core release: https://github.com/stm32duino/Arduino_Core_STM32/releases/download/2.0.0/build_result_2.0.0.log
Maybe you have an issue with your installation or in your sketch.
Yes, i'm sorry, I forget to delete my issue.
The problem is only when I add: #include
Thank's and sorry..
OK that explain all. Thanks for the feedback. 😉
Arduino 1.8.13, stm32duino 2.0, STM32duino RTC 1.1.0. Board BlackPill with STM32F401CCU6.
D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp: In member function 'uint32_t STM32RTC::getEpoch(uint32_t)': D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:808:13: error: aggregate 'tm tm' has incomplete type and cannot be defined 808 | struct tm tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:830:10: error: 'mktime' was not declared in this scope; did you mean 'mktemp'? 830 | return mktime(&tm); | ^
~| mktemp D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp: In member function 'void STM32RTC::setAlarmEpoch(uint32_t, STM32RTC::Alarm_Match, uint32_t)': D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:856:22: error: 'gmtime' was not declared in this scope; did you mean 'getTime'? 856 | struct tm tmp = gmtime(&t); | ^~| getTime D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:858:20: error: invalid use of incomplete type 'struct tm' 858 | setAlarmDay(tmp->tm_mday); | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:859:22: error: invalid use of incomplete type 'struct tm' 859 | setAlarmHours(tmp->tm_hour); | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:860:24: error: invalid use of incomplete type 'struct tm' 860 | setAlarmMinutes(tmp->tm_min); | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:861:24: error: invalid use of incomplete type 'struct tm' 861 | setAlarmSeconds(tmp->tm_sec); | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp: In member function 'void STM32RTC::setEpoch(uint32_t, uint32_t)': D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:880:22: error: 'gmtime' was not declared in this scope; did you mean 'getTime'? 880 | struct tm *tmp = gmtime(&t); | ^~| getTime D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:882:16: error: invalid use of incomplete type 'struct tm' 882 | _year = tmp->tm_year - EPOCH_TIME_YEAR_OFF; | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:883:17: error: invalid use of incomplete type 'struct tm' 883 | _month = tmp->tm_mon + 1; | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:884:15: error: invalid use of incomplete type 'struct tm' 884 | _day = tmp->tm_mday; | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:885:12: error: invalid use of incomplete type 'struct tm' 885 | if (tmp->tm_wday == 0) { | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:888:18: error: invalid use of incomplete type 'struct tm' 888 | _wday = tmp->tm_wday; | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:890:17: error: invalid use of incomplete type 'struct tm' 890 | _hours = tmp->tm_hour; | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:891:19: error: invalid use of incomplete type 'struct tm' 891 | _minutes = tmp->tm_min; | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:892:19: error: invalid use of incomplete type 'struct tm' 892 | _seconds = tmp->tm_sec; | ^~ In file included from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\cwchar:44, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\postypes.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\bits\char_traits.h:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\string:40, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\stdexcept:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\array:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\tuple:39, from c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\c++\9.3.1\functional:54, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/WInterrupts.h:25, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:39, from C:\Users\Grzegorz\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.h:40, from D:\Dane\Grzegorz\OneDrive\Dokumenty\Arduino\libraries\STM32RTC-master\src\STM32RTC.cpp:39: c:\users\grzegorz\appdata\local\arduino15\packages\stmicroelectronics\tools\xpack-arm-none-eabi-gcc\9.3.1-1.3\arm-none-eabi\include\wchar.h:82:8: note: forward declaration of 'struct tm' 82 | struct tm; | ^~ exit status 1 Błąd kompilacji dla płytki Generic STM32F4 series.