MCU boot loader in combination with CPP libraries does not work

Hi,

In order to make firmware updates over Bluetooth work, I need to enable the MCU boot loader. Is use CONFIG_BOOTLOADER_MCUBOOT=y in my prj.conf file to enable it. My code makes us of the standard CPP libraries and I enable them with CONFIG_LIB_CPLUSPLUS=y. The standard libraries work fine however when I enable the MCU boot loader I get the following error message:

Fullscreen
1
2
3
fatal error: algorithm: No such file or directory
6 | #include <algorithm>
| ^~~~~~~~~~~
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

and

Fullscreen
1
2
3
fatal error: cstdlib: No such file or directory
2 | #include <cstdlib>
| ^~~~~~~~~
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Do I miss some extra configurations or is there something else I am missing?

Thanks,
Stan