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

A problem with Zephyr, C++, and string

I'm having a problem with what should be a very simple exercise. I'm trying to compile the Zephyr sample subsys/cpp/cpp_synchronization after adding #include <string> to the main.cpp. This generates the error: fatal error: string: No such file or directory

My Linux system is set up as described in the nRF Connect manual setup instructions. Builds of cpp_synchronization and other Zephyr examples, as well as my own code, work correctly. 

Is there something special that needs to be done to include standard libraries (string, at least) in a Zephyr project? 

Parents Reply Children
Related