Wednesday, May 23rd 2018, 6:55pm 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.

Matt_C

Beginner

Date of registration: Feb 13th 2018

Posts: 1

1

Tuesday, February 13th 2018, 4:30pm

[SOLVED] C++, newlib-nano STL, and nRF52

I am attempting to refactor an existing C++ project into Segger Embedded Studio, but STLport does not have all the STL components that I need, so I am trying to get a Segger Embedded Studio project to work with newlib-nano.

I created a blank project using the nRF C/C++ template and an empty cpp file. When I add “include <vectors>” it will fail since these are not included in STLport. All I should need to do is use the newlib-nano from external ARM GCC libraries. However, so far I have been unsuccessful in using the external STL libraries.

I am trying to use gcc-arm-none-eabi-7-2017-q4-major and an nRF52832_xxAA processor.

I have tried changing the standard libraries path, using the external build commands, among other things.

Does anyone have a walkthrough for adding newlib-nano to a Segger Embedded Studio project or know what settings I may be missing to get the newlib-nano to work with my project?

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,052

2

Thursday, February 15th 2018, 9:13am

Hello,

Generally Embedded Studio offers the user to use any standard library they want.
First disable the use of Embedded Studio standard libraries in project options under Library->Include Standard Libraries->No
To add your library go to project options Linker->Additional Input Files and add your newlib directory there.
Now try to rebuild your project and you should be good to go.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/