Replies: 2 comments 5 replies
-
@rob040 : there is probably an issue in your project regarding dependencies. This error tells that Try to compile the This is what our CI is doing, and it works. I suspect something brings a conflict in your project maybe ? |
Beta Was this translation helpful? Give feedback.
-
This was indeed caused by duplicate library AsyncTCP v1.1.4 by me-no-dev and [email protected] by ESP32Async. I removed the former one, which probably will kill the compilation of some older project, that will require more time investment to get compiled with latest API . On the other hand, no big issue, as I should not use Arduino IDE for meaningful projects, as its library handling is a PITA. I should and will only use Arduino IDE for quick trials. wrt this issue, the Arduino IDE does not help me to identify that the culprit function was external to this library, while I estimated it was fully internal but maybe compiler setting/version related. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
ESP32
IDE / Tooling
Arduino (IDE/CLI)
What happened?
Compilation error on this library internal member function:
e:\develop\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h: In member function 'tcp_state AsyncWebServer::state() const':
e:\develop\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h:1107:49: error: passing 'const AsyncServer' as 'this' argument discards qualifiers [-fpermissive]
1107 | return static_cast<tcp_state>(_server.status());
| ~~~~~~~~~~~~~~^~
Using latest version of ESPAsyncWebServer v3.7.6
Using latest version of AsyncTCP v3.3.6
Using latest Arduino IDE version v2.3.6
Using ArduinoESP32 Arduino Release v3.2.0 based on ESP-IDF v5.4.1
Stack Trace
See compiler output above
Minimal Reproductible Example (MRE)
From Arduino library AsyncEspFsWebserver v2.0.2 (latest) by Tolentino Cotesta, compile example customOptions, without any modifications
I confirm that:
Beta Was this translation helpful? Give feedback.
All reactions