Re: NuttX 9.X C++11 Support

2020-06-20 Thread Gregory Nutt
Okay to clarify newlib is only the C library right? I'm using the gcc-arm-none-eabi-9-2019-q4 toolchain which it seems it comes with newlib libc but as far as I know I'm not linking to it. Furthermore I'm interesting in std C++11 functionality for portability not just the the C++11 dialect.

Re: NuttX 9.X C++11 Support

2020-06-20 Thread Maciej Wójcik
Right, newlib is C library. I feel dumb right now, because it seems I didn't know what I was using. But it is still something that C++ library provided by ARM GCC distribution was only working for me with both main package of ARM GCC and additional ARM newlib package installed. I was not digging

Re: NuttX 9.X C++11 Support

2020-06-20 Thread Peter van der Perk
Okay to clarify newlib is only the C library right? I'm using the gcc-arm-none-eabi-9-2019-q4 toolchain which it seems it comes with newlib libc but as far as I know I'm not linking to it. Furthermore I'm interesting in std C++11 functionality for portability not just the the C++11

Re: NuttX 9.X C++11 Support

2020-06-19 Thread Gregory Nutt
Use of newlib with NuttX should be avoid.  It is not binary compatible with NuttX.  See https://cwiki.apache.org/confluence/display/NUTTX/Integrating+with+Newlib This should be used instead: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=139629545 On 6/19/2020 3:54 PM,

Re: NuttX 9.X C++11 Support

2020-06-19 Thread Matias N.
I've been using libcxx for some time without major issues (although not recently). Alan's for of LLVM repo could be considered the authoritative source. I did however have always trouble with all streams stuff (cout, etc). This seemed to trigger faults on boot, during initialization of static

Re: NuttX 9.X C++11 Support

2020-06-19 Thread Maciej Wójcik
I was using newlib. It is bundled with ARM GCC toolchain, at least on Ubuntu and Arch. Worked out of the box, except I remember having minor build issues from time to time, when adding additional headers. This question was appearing here in the past. I am also not sure what is the official answer.

NuttX 9.X C++11 Support

2020-06-19 Thread info
For a personal project I want to use C++11, however which C++ library works best for that? Looking at the NuttX documentation it refers me to a "Contemporary port of the C++11 LLVM libcxx", but this guide (https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=139629545) is based