Loading...
 
Skip to main content

System Workbench for STM32


cannot use std containers

The project created in cube, then converted to c++.
Include statements do not show error and allow navigation to the code, e.g. #include <string> finds
"C:\SW4STM32\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825\tools\compiler\arm-none-eabi\include\c++\7.3.1\string
However attempt to use string class fails.

This is getting ridiculous.
I recalled that I've used std::vector in some class. So I opened it to verify and indeed it was OK. When I returned to previous file both unordered_map and string were without errors and I could ctrl-click at them and go into source code. The build was successful with zero errors.
Then I run "clean" and "rebuild" on the project, at which point errors came back.
It looks like indexer goes crazy on these classes for no apparent reason.