This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C++ STL on nRF52840

Hello,

I am trying to create a simple application using C++ 17 on nRF52840.

I use VS Code and CMake-based project settings.

I am able to use latest language features, but the compiler is not able to find STL headers (like vector, array, etc.)

Is there any settings I have to choose in Kconfig or in CMakeLists?

Thanks,

Alex

Parents
  • I assume you're using NCS 1.8.0. After quite a bit of digging when trying to migrate a project from 1.7.0, I found that you have to add the following to your prj.conf: CONFIG_LIB_CPLUSPLUS=y

    This is apparently a new configuration that needs to be set in the latest Zephyr version.

Reply
  • I assume you're using NCS 1.8.0. After quite a bit of digging when trying to migrate a project from 1.7.0, I found that you have to add the following to your prj.conf: CONFIG_LIB_CPLUSPLUS=y

    This is apparently a new configuration that needs to be set in the latest Zephyr version.

Children
Related