leducp commented on issue #14002:
URL: https://github.com/apache/nuttx/issues/14002#issuecomment-2404598159
OK! I have something working! When using the C++ toolchain, one have to
initialize std::cout or you will crash the application.
Something like that do the trick:
```cpp
std::ofstream ttyOut;
ttyOut.open ("/dev/console");
std::cout.rdbuf(ttyOut.rdbuf());
```
One probably need to to it also to std::cerr and std::clog. I can do a patch
to initialize properly this part of the C++ library in NuttX bootup but I don't
knwo where I can put it. Any clue?
In summary:
* C++ toolchain library crash because std::cout is not initialized, if init
cxx work perfectly
* C++ libcxx crash while testing the C++17 features (regression?)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]