-
-
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
Projects won't compile when using vector<> or list<> arrays #2330
Comments
Sming doesn't enable exception handling for the ESP8266 - it's is explicitly turned off via |
Erm, sorry, I don't understand how exception handling is connected to usage of There is a little bit of clue in the errors as it looks
|
This may throw a little light on the subject https://stackoverflow.com/questions/4826838/do-standard-library-stl-containers-support-a-form-of-nothrow-allocation |
Try adding this to your code:
|
It works with your addition, thank you! |
Here's another very interesting discussion about using C++ without exceptions https://softwareengineering.stackexchange.com/questions/113479/are-there-any-real-world-cases-for-c-without-exceptions |
Hello, team!
I bumped into a problem with latest Sming versions that I can not use
std::vector<>
andstd::list<>
arrays. No projects will compile if I use any of that.Here is an example on how to repeat the issue. Clean Ubuntu 20.04.2 LTS installation. Running Sming install and Basic_Blink compilation from docs:
Installs and compiles successfully.
Now, if I add vector variable and use it somewhere in that Basic_Blink example, it won't compile.
Here is the result after I run
make
command:And this is the result when I replace
std::vector<int>
withstd::list<int>
:I tried this with both master and develop branches with same result. Am I doing something wrong or is it Sming issue?
The text was updated successfully, but these errors were encountered: