-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Strange compiling errors since change to git version. #5390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is related to latest version of lwIP-2.1.2. |
Yes, I am using espconn ! The Ethernet Library is the default Arduino library for W5100. We have modified it for use with W5500. I will try to get it run with the default ethernet examples in the next hours. extern "C" #include <EthernetESP.h> |
Try with this first
This should work with both lwIP-v1.4 and lwIP-v2. This file is autogenerated and extract |
I have tried the following. Same result. Not working. #include <../../lwip2/include/lwip-err-t.h> #include <EthernetESP.h> |
What about modifying
by
|
Conflicting declaration vanished. Problems with virtual methods remaining. Something changed in the toolchain ? |
Thanks, I will commit this fix
Not with the toolchain, but mainly with |
The errors related to sections we did not change. E.g. Class "EthernetClient" contains virtual methods since beginning. And what's about the following. These are ESP internal libraries. The alternative W5500 library i have already checked. That's not enough for us. C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Udp.h:81:27: note: virtual IPAddress UDP::remoteIP() const
C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Udp.h:83:26: note: virtual uint16_t UDP::remotePort() const
|
@crndn2018 said:
Can you please provide details as to why? This is important. We're moving towards a unified tcp/ip stack that includes the Ethernet class, and could potentially include other interfaces in the future. There are plans for after this is finalized. |
Looking for interfaces like WifiClient/WifiServer. |
Signatures recently changed, I provided the link with all changes.
Both are working in current git version.
That is the point of this new library. |
In fact, in @d-a-v 's alternate Ethernet implementation EthernetClient would essentially be replaced, or aliased to, WiFiClient. Same for WiFiServer. |
OK, sorry, i misunderstood this. Perhaps you add an basic example, how to use it. For donkeys, like me ;) |
It's WIP, check d-a-v/W5500lwIP#3 |
My version of the Ethernet-Library overloads the methods whose signatures have changed. Corrected. Running. #Sketch void setup() { void loop() { } #Debug messages sketch\sketch_nov30a.ino.cpp.o: In function `setup': C:\Users\CD\Documents\Arduino\sketch_nov30a/sketch_nov30a.ino:8: undefined reference to `espconn_tcp_set_max_con' |
I ported it to lwIP-v2 but you show it is incomplete. It is anyway far to be tested nor proven to be working. Please open a new issue for this specific request but I'm afraid that will not be a priority. |
Tried lwIP v1.4. Not working. |
Basic Infos
Platform
Settings in IDE
Problem Description
After i have changed from Core 2.4.2 to latest git version (2.5.0-dev, Commit e7d3cf6) my project does not compile. I get many errors related to private libraries (e.g. W5500 library for ESP) but also related to ESP internal libraries.
Unfortunately i cannot provide any source code because its a professional iot project for my company.
Please have a look a the following error messages. The most error messages concern classes containing virtual methods. All classes with virtual methods now dealed as abstract classes and cannot be instanced.
A problem i was not faced with Core 2.4.2. Additionally i get conflicting declarations.
Debug Messages
The text was updated successfully, but these errors were encountered: