[GH-ISSUE #17] error: field '_server' has incomplete type #13

Closed
opened 2026-02-28 01:22:52 +03:00 by kerem · 8 comments
Owner

Originally created by @roccomuso on GitHub (Dec 8, 2015).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/17

This is my Sketch:

#include <EEPROM.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <WiFiManager.h>


void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

My error during compiling process:

Arduino:1.6.6 (Windows 10), Scheda:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"

In file included from C:\Users\Rocco\Documents\Arduino\hello_world\hello_world.ino:4:0:

 C:\Users\Rocco\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:143:15: error: field '_server' has incomplete type

   WiFiServer  _server;

               ^

exit status 1

The weird thing is that sometime I got the error and sometime I doesn't. o.O

Originally created by @roccomuso on GitHub (Dec 8, 2015). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/17 This is my Sketch: ``` #include <EEPROM.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <DNSServer.h> #include <WiFiManager.h> void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } ``` My error during compiling process: ``` Arduino:1.6.6 (Windows 10), Scheda:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)" In file included from C:\Users\Rocco\Documents\Arduino\hello_world\hello_world.ino:4:0: C:\Users\Rocco\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:143:15: error: field '_server' has incomplete type WiFiServer _server; ^ exit status 1 ``` The weird thing is that sometime I got the error and sometime I doesn't. o.O
kerem closed this issue 2026-02-28 01:22:52 +03:00
Author
Owner

@tzapu commented on GitHub (Dec 8, 2015):

hi, are you using the latest staging release of the arduino esp8266 core?

<!-- gh-comment-id:162981658 --> @tzapu commented on GitHub (Dec 8, 2015): hi, are you using the latest staging release of the arduino esp8266 core?
Author
Owner

@roccomuso commented on GitHub (Dec 8, 2015):

@tzapu I'm using the latest 2.0 stable release: http://arduino.esp8266.com/stable/package_esp8266com_index.json

<!-- gh-comment-id:162982207 --> @roccomuso commented on GitHub (Dec 8, 2015): @tzapu I'm using the latest 2.0 stable release: http://arduino.esp8266.com/stable/package_esp8266com_index.json
Author
Owner

@roccomuso commented on GitHub (Dec 8, 2015):

@tzapu Just discovered that if i move down the ESP8266WebServer.h dependency, in this way:

#include <EEPROM.h>
#include <WiFiClient.h>
#include <DNSServer.h>
#include <WiFiManager.h>
#include <ESP8266WebServer.h>

I have no compile error.

<!-- gh-comment-id:162983007 --> @roccomuso commented on GitHub (Dec 8, 2015): @tzapu Just discovered that if i move down the ESP8266WebServer.h dependency, in this way: ``` #include <EEPROM.h> #include <WiFiClient.h> #include <DNSServer.h> #include <WiFiManager.h> #include <ESP8266WebServer.h> ``` I have no compile error.
Author
Owner

@tzapu commented on GitHub (Dec 8, 2015):

cool,
thanks for letting me know.

you can also remove

#include <EEPROM.h>
#include <WiFiClient.h>

if you got the latest version of the lib. examples still need updating

<!-- gh-comment-id:162996622 --> @tzapu commented on GitHub (Dec 8, 2015): cool, thanks for letting me know. you can also remove ``` #include <EEPROM.h> #include <WiFiClient.h> ``` if you got the latest version of the lib. examples still need updating
Author
Owner

@roccomuso commented on GitHub (Dec 9, 2015):

@tzapu ok thank you.

<!-- gh-comment-id:163078825 --> @roccomuso commented on GitHub (Dec 9, 2015): @tzapu ok thank you.
Author
Owner

@tzapu commented on GitHub (Dec 9, 2015):

@roccomuso does it work ok with the 2.0.0 stable version?

<!-- gh-comment-id:163110019 --> @tzapu commented on GitHub (Dec 9, 2015): @roccomuso does it work ok with the 2.0.0 stable version?
Author
Owner

@roccomuso commented on GitHub (Dec 11, 2015):

@tzapu Tried today. It seems to work pretty well. :) I've tried it on a ESP866-01 board. And i've noticed that after the upload through the arduino ide (and GPIO0 pull down), you would get a ets Jan 8 2013,rst cause:1, boot mode:(1,7) error. So you must disconnect the pull down on GPIO0 and reset the board if you wanna make it works..

<!-- gh-comment-id:164047654 --> @roccomuso commented on GitHub (Dec 11, 2015): @tzapu Tried today. It seems to work pretty well. :) I've tried it on a ESP866-01 board. And i've noticed that after the upload through the arduino ide (and GPIO0 pull down), you would get a <code>ets Jan 8 2013,rst cause:1, boot mode:(1,7)</code> error. So you must disconnect the pull down on GPIO0 and reset the board if you wanna make it works..
Author
Owner

@tzapu commented on GitHub (Dec 11, 2015):

hi, that s pretty much general for all esp8266 modules. otherwise they reboot back into firmware upload mode.

glad it s working, i ll close this then

<!-- gh-comment-id:164047976 --> @tzapu commented on GitHub (Dec 11, 2015): hi, that s pretty much general for all esp8266 modules. otherwise they reboot back into firmware upload mode. glad it s working, i ll close this then
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#13
No description provided.