How to use STL/stdlib in System Workbench for STM32?
I want to use STL stdlib in System Workbench for STM32.
I’m using CubeMX which generates a project. I convert it to C++, rename main.c to main.cpp and got it working. Meaning, I could add C++ classes.
However, when I include e.g. vector the compiler is ok with it.
When I really want to use it, the compiler is still ok, but the linkerk shows linker problems (I’m not at home where I have the exact error, but the error is like it cannot find the functions used for vector). This probably means the object file for vector is not taken along.
Is it anyway possible to use stl within System Workbench? And if so, what should I do to make this happen?