C++ Support in Embedded Studio

From SEGGER Wiki
Jump to: navigation, search

This article will show how C++ libraries can be enabled in Embedded Studio so you can use C++ library functions in your application.

How to

For this guide Embedded Studio V5.60 or later is required. For older versions see the legacy steps below. The library is based on the libcxx's embedded subset.

  • Open the package manager under Tools->Package Manager
  • Select the ARM libcxx Library Package [Common] and select install
    • For RISCV the RISCV common package respectively
  • Press Next, Next to start the installation
  • Now either create a new project or use your existing one
  • Open the project options and under Libraries->libcxx Library select Yes
  • You should now get a prompt that will try to install additional libraries for your particular project setup, here select yes and install the additional package
  • Now you should be able to include the library headers in your source file e.g. #include <cstring> and use the library functions


Legacy STLport

For older Embedded Studio versions the libcxx library is not available. Instead use the STLport from the package manager and project options. The installation steps are the same as above.