-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Native ESP8266 SDK APIs linking #2333
Comments
Put the following line in your application's component.mk file:
You can read more about the build system from our documentation |
I started from there, but not able to make it working.
Notihng changes. The strange thing is that if I use a wrong name for the library, I obtain a different error. |
@mostorer The clue is "undefined reference to `_Z12esp_now_sendPhS_i'", the name is mangled. However, the SDK libraries are all standard C. Try this:
|
I'm now playing with ESP8266 esp-now api to have modules talk to each other without a connected WiFi.
I added the "espnow.h" to my source code and used the NONOS SDK api. The compilation phase is good but the link process not. For each espnow api used I obtain something like: "undefined reference to `_Z12esp_now_sendPhS_i'".
As the SDK is included within Sming platform, I thought all libraries would be linked to sources, but it seems is not so, and I'm not able to find the right way to add the "libespnow.a" to linked libraries.
Looking around I have not been able to find the right suggestion yet.
Is it the use of native SDK api supported in some way ?
The text was updated successfully, but these errors were encountered: