Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 9 months 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
- include <string> , but had got a lot of strange issues. I'm using SW4STM32.
1 Answer
5 years, 9 months ago.
Hi Igor, just implement the "C" getpid() function, maybe this fixes it. Regards Helmut
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