-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rc2.4.0-rc2 undefined reference to `strnlen_P' #3726
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
@freeck Do you have multiple versions of the core installed? e.g.: git, 2.3.0, 2.4.0-rc2, etc. |
Thanks for the suggestion. |
I'm seeing the same error. I am using PlatformIO, and installing the Arduino core using the instructions found here: http://docs.platformio.org/en/latest/platforms/espressif8266.html#using-arduino-framework-with-staging-version
|
I'm using PlatformIO with the Atom plugin. I removed ~/.platformio and the .pio* dirs in the project dir, I removed the plugin, then reinstalled it and let it reinstall PlatformIO. After that I built the project. From the build output (platformio run -v): Anything else I should try? |
I changed framework-arduinoespressif8266/cores/esp8266/pgmspace.cpp and pgmspace.h to have extern "C" {} around most of the files and then it works. After digging around in the files I found that tools/sdk/libc/xtensa-lx106-elf/include/assert.h includes pgmspace.h inside an extern "C" block (and a lot of other files are including it within extern "C" blocks), but pgmspace.cpp does not export the symbols with extern "C". I'll make a PR. |
Looks like this was a -rc issue that's long since cleared up. Closing, but if it's still there please do open a new issue or reopen this one with enough info to replicate on the 2.5.0-dev git head. |
After installing rc2 I encounter the following link-error:
After including #include <pgmspace.h> in file Wstring.cpp (above "#include arduino.h" there were no link-errors (this issue looks very much like #401).
Version 2.3 and 2.4.0-rc1 linked successfully. This error only occurs within the context of my application.
Trying to reproduce this error within a small application using Strings did not succeed.
Hints on how to tackle this would be welcome.
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
Hardware: ESP-12
Core Version: 2.4.0-rc2
Description
Problem description
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL?
Reset Method: ck
Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: