Skip to main content
Associate
Aug 17, 2023 1:45 PM UTC
Solved

Unresolved includes for C++ CDT standard includes IE etc.

I am using the STM32H745 series MCU, with the latest (or very recent, at least) version of CUBE IDE.

I'm having difficulty getting past errors for including CDT list, map etc

IE #include <list> ... doesn't include C++ CDT list and results in errors

Are there any compiler settings, to force inclusion of the full C++ CDT?

Or any middleware/ 3rd party STM32 forks, that I can use?

This topic has been closed for replies.
TDK
TDKBest answer
Aug 17, 2023 2:36 PM UTC

In project settings -> MCU settings, you can choose the C++ library.

TDK_0-1692282963917.png

Although <list> compiles fine for me with nano, so not sure what would be different.

"If you feel a post has answered your question, please click ""Accept as Solution""."

3 replies

TDK
TDKBest answer
Aug 17, 2023 2:36 PM UTC

In project settings -> MCU settings, you can choose the C++ library.

TDK_0-1692282963917.png

Although <list> compiles fine for me with nano, so not sure what would be different.

"If you feel a post has answered your question, please click ""Accept as Solution""."
MattyBAuthor
Associate
Aug 17, 2023 3:21 PM UTC

Reduced C, standard C++ switch, seems to have taken 190 'unfixable' errors down to 35 'fixable' ones

MattyBAuthor
Associate
Aug 17, 2023 3:22 PM UTC

Thanks