cant compile
charuga opened this issue · 0 comments
Arduino: 1.8.9 (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
C:\Users\pc1\Desktop\kontroleri\arduino\portable\sketchbook\libraries\webconfig\WebConfig.cpp:9:61: error: use of deleted function 'ESP8266WebServer::ESP8266WebServer(const ESP8266WebServer&)'
ESP8266WebServer WebConfig::gWebServer = ESP8266WebServer(80);
^
In file included from C:\Users\pc1\Desktop\kontroleri\arduino\portable\sketchbook\libraries\webconfig\WebConfig.h:7:0,
from C:\Users\pc1\Desktop\kontroleri\arduino\portable\sketchbook\libraries\webconfig\WebConfig.cpp:5:
C:\Users\pc1\Desktop\kontroleri\arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:70:7: note: 'ESP8266WebServer::ESP8266WebServer(const ESP8266WebServer&)' is implicitly deleted because the default definition would be ill-formed:
class ESP8266WebServer
^
C:\Users\pc1\Desktop\kontroleri\arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:70:7: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = HTTPUpload; _Dp = std::default_delete]'
In file included from c:\users\pc1\desktop\kontroleri\arduino\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2\memory:81:0,
from C:\Users\pc1\Desktop\kontroleri\arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.h:28,
from C:\Users\pc1\Desktop\kontroleri\arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi\src/ESP8266WiFiSTA.h:28,
from C:\Users\pc1\Desktop\kontroleri\arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:34,
from C:\Users\pc1\Desktop\kontroleri\arduino\portable\sketchbook\libraries\webconfig\WebConfig.h:6,
from C:\Users\pc1\Desktop\kontroleri\arduino\portable\sketchbook\libraries\webconfig\WebConfig.cpp:5:
c:\users\pc1\desktop\kontroleri\arduino\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2\bits\unique_ptr.h:273:7: error: declared here
unique_ptr(const unique_ptr&) = delete;
^
C:\Users\pc1\Desktop\kontroleri\arduino\portable\sketchbook\libraries\webconfig\WebConfig.cpp: In static member function 'static void WebConfig::WebServer_SaveConfig()':
C:\Users\pc1\Desktop\kontroleri\arduino\portable\sketchbook\libraries\webconfig\WebConfig.cpp:58:49: error: use of deleted function 'ESP8266WebServer::ESP8266WebServer(const ESP8266WebServer&)'
String vHtmlText = gSavePageFunction(gWebServer);
^
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.