Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dy-le opened this issue Aug 26, 2018 · 1 comment
Open

Comments

@dy-le
Copy link

dy-le commented Aug 26, 2018

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.
@odelot
Copy link
Owner

odelot commented Aug 26, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants