-
Notifications
You must be signed in to change notification settings - Fork 5
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
C++11 support #9
Comments
This will take a little work, and I probably won't start working on it for a couple weeks. I think it is more than just changing the compiler version; there are probably some library and configuration updates in the platform core needed as well. |
Thank you! Sounds fantastic! :-) |
This is fantastic! |
I would also like to be added, please if possible add it soon. Thank you |
Hope you can add it very soon, i would appreciate it very much. Thank you :) |
Allso i Ask GPT To enable C++11 support, but didn't work. Can you add some modification please for platform's please? Here is GPT answer follow these steps based on your development environment: For Arduino IDE:
For the ESP32: hardware/espressif/esp32/platform.txt
compiler.cpp.flags=-std=gnu++11 -fno-exceptions -fno-rtti ...
For PlatformIO:
build_flags = -std=gnu++11
For Other IDEs (e.g., Visual Studio, Eclipse):
Let me know if this resolves your issue! |
GCC Support for C++11Per https://gcc.gnu.org/projects/cxx-status.html#cxx11:
TI Platform Core Compiler Versions
So, based on the above, the MSP432 and Tiva platforms should work with C++11 code, but MSP430 will not. |
Based on the notes from my comment above, and my very limited testing, I am pretty sure that MSP432 and Tiva platforms should work with the existing platform cores published here. So I am assuming that this request is for MSP430 support. It turns out that that there is an "experimental" MSP430 platform version that was published by one of the Energia developers (see this archived forum post). That platform version uses GCC version 9.2.0.50 which fully supports C++11. [Edited 2-Dec-24 to correct the version number to 9.2.0.50 instead of 8.3.0] In order to use that version, add the following URL to your Arduino Settings/Preferences:
Then, install "Energia MSP430 boards (elf-gcc)" from the Board Manager. If you can confirm that the "elf-gcc" version of the core works for MSP430 boards, then that should give you a workaround until I get the all the cores updated to a more recent GCC version. Also, if you are having C++11 problems with MSP432 or Tiva, please also give details in the comments here. |
Thank you! I think I got it to work now with the msp432 :-) This is great! The next version of Visuino will include the support. I have started mapping the MSP432 P401R board already :-) |
congratulations Mitov!!!!!!!!! and Andreas |
How to enable C++11 support?
I am unable to compile modern libraries that require the C++11 features such as class member initialization :-( .
With best regards,
Boian Mitov
The text was updated successfully, but these errors were encountered: