odelot / aws-mqtt-websockets

Implementation of a middleware to use AWS MQTT service through websockets, aiming the ESP8266 plataform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined reference to 'gmtime_r' in Stream.h and AWSWebSocketClient.h

dy-le opened this issue · comments

i was trying to run examples and when i tried to compile this error occurred. What could possible be the cause of this error and how to fix it?

Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

Build options changed, rebuilding all
Archiving built core (caching) in: C:\Users\lpxed\AppData\Local\Temp\arduino_cache_110068\core\core_esp8266_esp8266_generic_CpuFrequency_80,FlashFreq_40,FlashMode_dio,UploadSpeed_115200,FlashSize_512K64,ResetMethod_ck,Debug_Disabled,DebugLevel_None_____58eaac4747090ff4d9dbc37c18df4663.a
libraries\aws-mqtt-websockets-master\AWSWebSocketClient.cpp.o: In function `AWSWebSocketClient::ntpFixNumber(int)':

C:\Users\lpxed\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Stream.h:93: undefined reference to `gmtime_r'

libraries\aws-mqtt-websockets-master\AWSWebSocketClient.cpp.o:(.text._ZN18AWSWebSocketClient17getCurrentTimeNTPEv+0x33): undefined reference to `gmtime_r'

libraries\aws-mqtt-websockets-master\AWSWebSocketClient.cpp.o: In function `AWSWebSocketClient::getCurrentTimeNTP()':

C:\Users\lpxed\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Stream.h:93: undefined reference to `gmtime_r'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Generic ESP8266 Module.

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