-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
error: std::string is not declared #1967
Labels
Comments
bblanchon
added a commit
that referenced
this issue
Sep 13, 2023
bblanchon
added a commit
that referenced
this issue
Sep 13, 2023
Hi @margaretselzer, Thank you very much for reporting this bug 👍 Best regards, |
bblanchon
added a commit
that referenced
this issue
Sep 13, 2023
bblanchon
added a commit
that referenced
this issue
Sep 13, 2023
The fix was published with ArduinoJson 6.21.4. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
I have a rather complex Arduino project where I use ArduinoJson. When using version 6.19.4 the code compiled without any problems. We have updated now to ArduinoJson 6.21.3 and get build errors. The first build error is "/ArduinoJson/Variant/ConverterImpl.hpp:283:51: error: 'std::string' has not been declared" and then as a result there is a massive number of other errors. The problem can be fixed by including
<string>
before ArduinoJson.h, however I believe that the ArduinoJson library should be able to manage its own dependencies.I propose a fix in the "Reproduction Code" section.
Troubleshooter's report
Environment
Reproduction code
Remarks
I suggest to do the same for
<string_view>
and any other STL type used by ArduinoJson.The text was updated successfully, but these errors were encountered: