-
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
Basic locale support for C++ (libstdc++) #12230
Conversation
ping @trns1997 @nicolas71640 |
f82cba5
to
22f0cfb
Compare
22f0cfb
to
0eed1d4
Compare
Mmm it solves the problem but not with LLVM libcxx, so i'm not sure if this can be considered a fix for this specific issue. But for sure it at least solves the general problem to use full C++ standard library on NuttX. |
In that case a small mention for future users who fail to use sstream because of llvm. |
@leducp i can confirm that |
@leducp please sqaush into one patch. |
47df7c5
to
8ed2137
Compare
31582e4
to
b536dcb
Compare
e58da05
to
cd21971
Compare
…rk for simple cases (POSIX / C locale). Fix build with C++ GCC toolchain
cd21971
to
5af01ca
Compare
let's ignore lvgl ci break which is fixed here: apache/nuttx-apps#2370 |
Summary
In order to build C++ stream with GCC libstdc++, a basic locale support is required. This PR add the support for it but in a private manner for now on (standard C locale functions are not exposed yet).
Fix also the build with GCC libstdc++: an include error was leading to stranges behaviors which where workaround with a hack (-D_STDLIB_H) in the past.
Impact
A full C++ code can now be built and executed with LIBCXXTOOLCHAIN with ARM GCC, including std::stringstream (cf. #11227).
Testing
On xmc4 with an std::stringstream to format a complex object.