Open dy-le opened 6 years ago
do you have a time.h in your project besides the one that comes with ESP sdk?
are you using the lastest version of ESP sdk? 2.4.2
On Sun, Aug 26, 2018 at 4:53 AM daemon-Lee notifications@github.com wrote:
i was trying to run examples and when i tried to compile this error occurred `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. `
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/odelot/aws-mqtt-websockets/issues/45, or mute the thread https://github.com/notifications/unsubscribe-auth/AE34Dpg56g5TmUU_yyvorPIjVjHeZ_3kks5uUlP_gaJpZM4WMsAN .
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?