espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.63k stars 7.41k forks source link

Redeclaration errors when including both WebServer.h and HttpsOTAUpdate.h #4758

Closed tomjschwanke closed 3 years ago

tomjschwanke commented 3 years ago

Hardware:

Board: Board not connected, compiling for ESP32 dev-module Core Installation version: 1.0.5-rc6 IDE name: Arduino Pro IDE Computer OS: Windows 10

Description:

When I include both WebServer.h and HttpsOTAUpdate.h the IDE gives me tons of redeclaration errors

Sketch:

#include <WebServer.h>
#include <HttpsOTAUpdate.h>

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

}

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

}

Compile output:

https://gist.github.com/tomjschwanke/e4756747343163e2a5c3a5ddc50c54ab

jameszah commented 3 years ago

Here is a workaround - my specific problem was WebServer.h and esp_http_server.h -- I think it might be the same problem. Was it HTTP_GET redeclaration?

https://github.com/tzapu/WiFiManager/issues/1184

stale[bot] commented 3 years ago

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.