Skip to content
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

Core Library Dependencies #45

Open
jscrane opened this issue Jun 6, 2024 · 0 comments
Open

Core Library Dependencies #45

jscrane opened this issue Jun 6, 2024 · 0 comments

Comments

@jscrane
Copy link
Owner

jscrane commented Jun 6, 2024

Starting with version 3.0.0, the esp32 core has refactored its libraries in a way which requires including a library's dependencies as well, e.g., to use WiFi need to include its dependency Network as well:

#include <Network.h>
#include <WiFi.h>

Otherwise the compilation will fail:

In file included from /home/steve/.arduino15/packages/esp32/hardware/esp32/3.0.1/libraries/WiFi/src/WiFiSTA.h:29,
                 from /home/steve/.arduino15/packages/esp32/hardware/esp32/3.0.1/libraries/WiFi/src/WiFi.h:33,
                 from Radar.ino:4:
/home/steve/.arduino15/packages/esp32/hardware/esp32/3.0.1/libraries/WiFi/src/WiFiGeneric.h:39:10: fatal error: Network.h: No such file or directory
   39 | #include "Network.h"
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [build-targets.mk:68: Radar.ino.cpp.o] Error 1

More information here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant