<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>A problem with Zephyr, C++, and string</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81378/a-problem-with-zephyr-c-and-string</link><description>I&amp;#39;m having a problem with what should be a very simple exercise. I&amp;#39;m trying to compile the Zephyr sample subsys/cpp/cpp_synchronization after adding #include &amp;lt;string&amp;gt; to the main.cpp . This generates the error: fatal error: string: No such file or directory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Nov 2021 17:12:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81378/a-problem-with-zephyr-c-and-string" /><item><title>RE: A problem with Zephyr, C++, and string</title><link>https://devzone.nordicsemi.com/thread/337564?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 17:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abef3dc9-a6f5-45c1-9357-7f3d5c35fda9</guid><dc:creator>Chris Pearson</dc:creator><description>&lt;p&gt;Aha!&amp;nbsp; Thank you -- that was what is missing. Unfortunately the Zephyr documentation tends to be rather sparse...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with Zephyr, C++, and string</title><link>https://devzone.nordicsemi.com/thread/337482?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 13:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:466933a2-0db0-4489-a6ee-f0eada477700</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should add a few configs in prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CPLUSPLUS=y
CONFIG_LIB_CPLUSPLUS=y
CONFIG_NEWLIB_LIBC=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>