5 years, 1 month ago.

Is there option for using standart C++ library?

I want to use strings and arrays in my project, how should I add them? I tried use

  1. include <string> , but had got a lot of strange issues. I'm using SW4STM32.

/media/uploads/Saynok/2019-03-16_03-32-58.png

So it compiles if you do not include <string>? You might want to check GCC compiler version. It's possible System Workbench is using new compiler that is not compatible. Looks like at least up to GCC 6 should be okay with mbed 5.5 onward. https://os.mbed.com/forum/helloworld/topic/27833/. It looks like you are maybe invoking GCC 7. Download new compiler version https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads and then point project at it: Properties->C/C++ Build->Settings->MCU Settings->Path

posted by Graham S. 16 Mar 2019

1 Answer

5 years, 1 month ago.

Hi Igor, just implement the "C" getpid() function, maybe this fixes it. Regards Helmut