You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The header file has a line: const IPAddress INADDR_NONE(0,0,0,0);
Which means every file that includes this header will be assigned its own INADDR_NONE. Projects with limited static memory will encounter problems when this file is included in many .cpp files.
A suggested workaround (which I have confirmed works) would be to make IPAddress.h say extern const IPAddress INADDR_NONE; and define the actual variable in IPAddress.cpp as const IPAddress INADDR_NONE(0,0,0,0);
The text was updated successfully, but these errors were encountered:
Good to know, thank you! Will this be something this core does in the future, or should I plan to configure a different board? I’m currently using a CI framework that installs AVR...
edit: I looked at the PR, if the owner doesn’t make the changes I would happily consider doing my own version of this with appropriate changes
The header file has a line:
const IPAddress INADDR_NONE(0,0,0,0);
Which means every file that includes this header will be assigned its own INADDR_NONE. Projects with limited static memory will encounter problems when this file is included in many .cpp files.
A suggested workaround (which I have confirmed works) would be to make IPAddress.h say
extern const IPAddress INADDR_NONE;
and define the actual variable in IPAddress.cpp asconst IPAddress INADDR_NONE(0,0,0,0);
The text was updated successfully, but these errors were encountered: