Tuesday, May 22nd 2018, 5:25pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Mar 26th 2017

Posts: 4


Monday, March 27th 2017, 9:45am

SES STLPort - std::array, uint8_t, etc...

Hi everybody,
My current setup is Eclipse with GNU ARM plugin and J-Link debug probe. My toolchain is GNU ARM which uses newlib library. I mostly use C++.

I'm evaluating SES at the moment and I have a couple of questions:

- Is there no std::array in provided STLPort C++ library?
- In which header can I find standard types like std::uint8_t? (STL uses <cstdint>)
- Can I use Newlib with SES?

I like the idea of using clang and have better debugging experience then what I can get with Eclipse. From that point of view the SES look quite appealing.
I seems that I would have to heavily modify my current projects to work with STLPort library (use of std::array and STL algorithms). Please correct me if I'm wrong...

Kind regards,

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 379


Thursday, March 30th 2017, 11:08am

Hi Jan,

To use an external standard library, such as newlib, you can disable the use of the Embedded Studio libraries in the the project options at Linker -> Library.

The C++ STL functionality of STLPort 5.1.0 is provided in SEGGER Embedded Studio. To use STLPort you must put $(StudioDir)/include/stlport as the first entry in the User Include Directories project property. The STLPort is configured to not support long doubles and iostreams.

Since STLPort is kindof old now and not well maintained there will be an update of the STL in Embedded Studio with one of the next versions to also support newer versions of C++.

Best regards



Date of registration: Mar 26th 2017

Posts: 4


Friday, March 31st 2017, 3:52pm

Thank you very much for the feedback :)