<?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>Cpp Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67456/cpp-problem</link><description>Hello Sir or ma&amp;#39;am 
 I am trying to load CPP SDK on my nrf52840 DK, But whenever I compile my code it through the error like this,&amp;quot; vector: No such file or directory&amp;quot;. Now, What can I do.I am using segger embedded studio for code editing build and programing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Oct 2020 05:56:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67456/cpp-problem" /><item><title>RE: Cpp Problem</title><link>https://devzone.nordicsemi.com/thread/277018?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 05:56:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84b2404-357b-45b4-adc3-8f905cf1f4c9</guid><dc:creator>Rink</dc:creator><description>&lt;p&gt;Ok I will try then I tell you .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cpp Problem</title><link>https://devzone.nordicsemi.com/thread/276933?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 15:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df155091-8dde-4471-a019-397f8032c75f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Did you add CONFIG_LIB_CPLUSPLUS=y?&lt;/p&gt;
&lt;p&gt;These configurations work for me in the hello_world sample modified to use C++ instead of C:&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><item><title>RE: Cpp Problem</title><link>https://devzone.nordicsemi.com/thread/276730?ContentTypeID=1</link><pubDate>Sat, 24 Oct 2020 07:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77e50e4c-3fce-4656-8faa-0cabf111e07b</guid><dc:creator>Rink</dc:creator><description>&lt;p&gt;Thanks for reply , &lt;/p&gt;
&lt;p&gt;But its not working , I was trying to add CONFIG_NEWLIB_LIBC=y, CONFIG_NEWLIB_LIBC=y and CONFIG_NEWLIB_LIBC_NANO=n&amp;nbsp; in prj.conf but after this I got so many new errors with vector error.&lt;/p&gt;
&lt;p&gt;what can I do now ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cpp Problem</title><link>https://devzone.nordicsemi.com/thread/276263?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 14:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0110c8a3-7e6a-42d3-be3c-3b3a1104438d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Thank you, knowing the context helps a lot.&lt;/p&gt;
&lt;p&gt;The nRF Connect SDK should support C++, but this is not something that has been tested a lot, so some problems could potentially occur.&lt;/p&gt;
&lt;p&gt;There is some documentation about C++ support in Zephyr, and by extension NCS here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/other/cxx_support.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/other/cxx_support.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To enable C++ support in NCS, you must add CONFIG_CPLUSPLUS=y to your prj.conf file (if you are building with SES, you must re-open the project for the changes in prj.conf to take effect). In addition, you need CONFIG_NEWLIB_LIBC=y and CONFIG_LIB_CPLUSPLUS=y to enable the standard C++ library. In addition to those, you might also need CONFIG_NEWLIB_LIBC_NANO=n to enable full Newlib libc support.&lt;/p&gt;
&lt;p&gt;Could you try to add those configs, in addition to making sure that the file that includes &amp;lt;vector&amp;gt; is a .cpp file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cpp Problem</title><link>https://devzone.nordicsemi.com/thread/276185?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 12:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:192eadd6-6ab1-4223-823b-130c2ff64a82</guid><dc:creator>Rink</dc:creator><description>&lt;p&gt;5.&amp;nbsp;What do you mean by this? Have you compiled the C++ standard library?&lt;/p&gt;
&lt;p&gt;-&amp;gt; I refer your sample code which is given in zephyr sample section -- cpp_synchronization&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cpp Problem</title><link>https://devzone.nordicsemi.com/thread/276182?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 12:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57a716b6-a728-4eb8-9101-d1ce2a2bd497</guid><dc:creator>Rink</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;target_sources(app PRIVATE
		
./src/test/edge-impulse-sdk/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q15.c
./src/test/edge-impulse-sdk/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_with_batch_q7.c
./src/test/edge-impulse-sdk/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_q7.c
./src/test/edge-impulse-sdk/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_s8.c
./src/test/edge-impulse-sdk/CMSIS/NN/Source/SoftmaxFunctions/arm_softmax_u8.c
./src/test/edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c
./src/test/edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_avgpool_s8.c
./src/test/edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_max_pool_s8.c
./src/test/edge-impulse-sdk/CMSIS/NN/Source/PoolingFunctions/arm_max_pool_s8_opt.c&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;ok sir ,&lt;/p&gt;
&lt;p&gt;1. Which SDK are you using? nRF5 SDK? nRF Connect SDK?&lt;/p&gt;
&lt;p&gt;-&amp;gt; nRF Connect SDK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. Which version of the SDK are you using?&lt;/p&gt;
&lt;p&gt;-&amp;gt; &lt;a class="reference internal" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/releases/release-notes-1.3.2.html"&gt;nRF Connect SDK v1.3.2 &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. What application are you trying to build? One of the samples? Which one? Or your own application?&lt;/p&gt;
&lt;p&gt;-&amp;gt; I am try to build AI demo using edge impulse standard cpp files, Motion detection (left-to-right,stay,up-to-down) using&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accelerometer sensor.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board :- nRF52840 DK , Sensor :- lis2dw12&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;How did you &amp;quot;link all the folder and .h, .cc, .cpp, .c, .hpp files in CMakeLists.txt&lt;/p&gt;
&lt;p&gt;-&amp;gt; I attached some lines in code section for just example &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;5. &amp;nbsp;What do you mean by this? Have you compiled the C++ standard library?&lt;/p&gt;
&lt;p&gt;-&amp;gt; Edge impulse studio is online dashboard which create AI based library . That library is in Cpp&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;6. Which file is giving the error?&lt;/p&gt;
&lt;p&gt;-&amp;gt; #inlcude&amp;lt;vector&amp;gt;.....&amp;nbsp; error is &amp;quot;vector: No such file or directory&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cpp Problem</title><link>https://devzone.nordicsemi.com/thread/276172?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 12:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c9554bf-b516-4b23-a8ac-028522700dec</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am going to need some more information from you:&lt;/p&gt;
&lt;p&gt;1. Which SDK are you using? nRF5 SDK? nRF Connect SDK?&lt;/p&gt;
&lt;p&gt;2. Which version of the SDK are you using?&lt;/p&gt;
&lt;p&gt;3. What application are you trying to build? One of the samples? Which one? Or your own application?&lt;/p&gt;
&lt;p&gt;3. How did you &amp;quot;link all the folder and .h, .cc, .cpp, .c, .hpp files in CMakeLists.txt&lt;/p&gt;
&lt;p&gt;4. What do you mean by this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""] I have standard cpp library which i made using edge impulse studio [/quote]
&lt;p&gt;&amp;nbsp;What do you mean by this? Have you compiled the C++ standard library?&lt;/p&gt;
&lt;p&gt;5. Which file is giving the error?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>