-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
Unable to link C++ standard library to espressif platform build #503
Comments
Hi @martianmartin! Did you try build_flags option in your
|
Hi @valeros, yes I tried using the build flags. When I do that, in addition to the 'undefined reference' errors I also get 'multiple definition' errors and 'dangerous reallocation: call0: call target out of range" errors. The multiple definition errors make me think that part of the library is being left out, so re-including the entire thing may cause overlap? Let me know what other information I can provide you to clarify the problem. I didn't want to paste the whole compiler error printout because it's very long but I can if that would help. |
As an experiment I removed the lines which perform map operations, which allows it to compile successfully. Then, adding back:
|
Thanks, @martianmartin. I've reproduced this error, it's due to library linking order. Could you please try this version of PlatformIO with your project? |
Yes, that worked, thank you so much. I am sincerely impressed with your responsiveness. Do you mind explaining how the library linking order was wrong and how you fixed it? Cheers |
I am unable to link against stdc++ library using the espressfi platform. I am able to do this in arduino IDE by adding -lstdc++ to platforms.txt. I have tried adding "stdc++" and "supc++" to the LIBS array in the espressif.py builder but this does not seem to have any effect. Any assistance appreciated.
Thank you
The text was updated successfully, but these errors were encountered: