<?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>C++ STL on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83229/c-stl-on-nrf52840</link><description>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.) 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 02 Jan 2022 09:58:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83229/c-stl-on-nrf52840" /><item><title>RE: C++ STL on nRF52840</title><link>https://devzone.nordicsemi.com/thread/345547?ContentTypeID=1</link><pubDate>Sun, 02 Jan 2022 09:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b07fed8a-aec2-45fc-b7ef-4f5321ca358f</guid><dc:creator>akushni1</dc:creator><description>&lt;p&gt;OK, I tried it, this is the issue. &lt;/p&gt;
&lt;p&gt;It is worth mentioning that Newlib C library should be used in order to enable C++&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ STL on nRF52840</title><link>https://devzone.nordicsemi.com/thread/345516?ContentTypeID=1</link><pubDate>Thu, 30 Dec 2021 22:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:122c066c-5dbb-4b96-8b03-1d40017239f5</guid><dc:creator>nicolae.georgescu</dc:creator><description>&lt;p&gt;Worked for me! I was just about to open a ticket. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ STL on nRF52840</title><link>https://devzone.nordicsemi.com/thread/345504?ContentTypeID=1</link><pubDate>Thu, 30 Dec 2021 16:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac2da143-489c-4da8-b42c-447be578090b</guid><dc:creator>akushni1</dc:creator><description>&lt;p&gt;Great, thanks! I will try it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ STL on nRF52840</title><link>https://devzone.nordicsemi.com/thread/345502?ContentTypeID=1</link><pubDate>Thu, 30 Dec 2021 16:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13e0d08c-993d-46d4-aea3-d4b91f8d6a09</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;I assume you&amp;#39;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&lt;/p&gt;
&lt;p&gt;This is apparently a new configuration that needs to be set in the latest Zephyr version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>