0 votes
in Touch Interface by (210 points)

where can i find a copy of #include <sys/socket.h>. I keep getting the same error code no matter what I try.

Arduino: 1.8.7 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\Jim\Documents\Arduino\libraries\ESP8266WiFi\src\bearssl\samples\client_basic.c:33:24: fatal error: sys/socket.h: No such file or directory

 #include <sys/socket.h>

                        ^

compilation terminated.

exit status 1

Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

1 Answer

0 votes
by (19.9k points)

I don't know what the root cause is but it's unrelated to our project/code. I recently confirmed that the project compiles just fine for ESP8266 Arduino Core 2.5.x, 2.6.x and the current 2.7.x.

Please check if the hints found on the internet lead you to the root cause.

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...