![esp8266 – NodeMCU: Did not compile code due to a number of library errors esp8266 – NodeMCU: Did not compile code due to a number of library errors](https://techtoguide.com/wp-content/uploads/2023/12/esp32-Arduino-GFX-Library-breaks-after-reinstalling.png)
[ad_1]
I used to be getting a number of errors and may’t work out what’s flawed.
Arduino: 1.8.13 (Home windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most appropriate), 4MB (FS:2MB OTA:~1019KB), v2 Decrease Reminiscence, Disabled, None, Solely Sketch, 115200"
In file included from E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:29:0:
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.h:27:7: error: redefinition of 'class WiFiUDP'
class WiFiUDP : public UDP {
^
In file included from E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcutility/wifi_drv.h:26:0,
from E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:26:
C:UsersbenAppDataLocalArduino15packagesesp8266hardwareesp82662.7.4librariesESP8266WiFisrc/WiFiUdp.h:32:7: error: earlier definition of 'class WiFiUDP'
class WiFiUDP : public UDP, public SList<WiFiUDP> {
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In constructor 'WiFiUDP::WiFiUDP()':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:35:22: error: class 'WiFiUDP' doesn't have any discipline named '_sock'
WiFiUDP::WiFiUDP() : _sock(NO_SOCKET_AVAIL) {}
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital uint8_t WiFiUDP::start(uint16_t)':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:45:9: error: '_sock' was not declared on this scope
_sock = sock;
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:46:9: error: '_port' was not declared on this scope
_port = port;
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital int WiFiUDP::out there()':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:56:7: error: '_sock' was not declared on this scope
if (_sock != NO_SOCKET_AVAIL)
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital void WiFiUDP::cease()':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:66:8: error: '_sock' was not declared on this scope
if (_sock == NO_SOCKET_AVAIL)
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:69:26: error: '_sock' was not declared on this scope
ServerDrv::stopClient(_sock);
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital int WiFiUDP::beginPacket(IPAddress, uint16_t)':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:88:7: error: '_sock' was not declared on this scope
if (_sock == NO_SOCKET_AVAIL)
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:90:7: error: '_sock' was not declared on this scope
if (_sock != NO_SOCKET_AVAIL)
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital int WiFiUDP::endPacket()':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:101:32: error: '_sock' was not declared on this scope
return ServerDrv::sendUdpData(_sock);
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital size_t WiFiUDP::write(const uint8_t*, size_t)':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:111:27: error: '_sock' was not declared on this scope
ServerDrv::insertDataBuf(_sock, buffer, dimension);
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital int WiFiUDP::learn()':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:125:23: error: '_sock' was not declared on this scope
ServerDrv::getData(_sock, &b);
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital int WiFiUDP::learn(unsigned char*, size_t)':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:137:31: error: '_sock' was not declared on this scope
if (!ServerDrv::getDataBuf(_sock, buffer, &dimension))
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital int WiFiUDP::peek()':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:152:22: error: '_sock' was not declared on this scope
ServerDrv::getData(_sock, &b, 1);
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital IPAddress WiFiUDP::remoteIP()':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:166:25: error: '_sock' was not declared on this scope
WiFiDrv::getRemoteData(_sock, _remoteIp, _remotePort);
^
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp: In member perform 'digital uint16_t WiFiUDP::remotePort()':
E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFisrcWiFiUdp.cpp:176:25: error: '_sock' was not declared on this scope
WiFiDrv::getRemoteData(_sock, _remoteIp, _remotePort);
^
A number of libraries have been discovered for "WiFi.h"
Used: E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesWiFi
Not used: E:ProgrammingElectronics labARDUINOsketchlibrariesWiFiNINA
A number of libraries have been discovered for "HttpClient.h"
Used: E:ProgrammingElectronics labARDUINOsketchlibrariesHttpClient
Not used: E:ProgrammingElectronics labARDUINOsketchlibrariesArduinoHttpClient
Not used: E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesBridge
Not used: E:ProgrammingElectronics labARDUINOarduino-1.8.13-windowsarduino-1.8.13librariesHttpClient
Not used: C:UsersbenAppDataLocalArduino15packagesesp8266hardwareesp82662.7.4librariesHttpClient
exit standing 1
Error compiling for board NodeMCU 0.9 (ESP-12 Module).
This report would have extra info with
"Present verbose output throughout compilation"
possibility enabled in File -> Preferences.
Please assist me repair this.
[ad_2]