<?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>[Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124576/bug-report-nrf-cloud-headers-not-working-for-c</link><description>Hi, 
 
 
 
 I want to report a bug/issue with the NCS, is this the right place to do that? 
 We are compiling for C++, so when including headers like &amp;lt;net/nrf_cloud_coap.h&amp;gt; and &amp;lt;net/nrf_cloud_fota_poll.h&amp;gt; there are some issues. 
 
 
 
 1. In net/nrf_cloud_fota_poll</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Oct 2025 11:34:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124576/bug-report-nrf-cloud-headers-not-working-for-c" /><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/550582?ContentTypeID=1</link><pubDate>Fri, 03 Oct 2025 11:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b00355-7c35-4681-b1af-6d8f000dcb5a</guid><dc:creator>Pascal Hdz</dc:creator><description>&lt;p&gt;The missing bracket are now merged to the latest NCS but the remaining fixes will come later as we need to adjust our internal setup. Thanks for sharing, if there is nothing else left, we can close this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/550135?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2025 10:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e873719b-50d3-4603-88e4-e51950752ebc</guid><dc:creator>Nicholas Braaten</dc:creator><description>&lt;p&gt;Not sure if this is sufficient for this exact sample (I tried to build the sample out of the box now, but fail), but I do atleast have these Kconfigs:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NEWLIB_LIBC=y
CONFIG_CPP=y
CONFIG_GLIBCXX_LIBCPP=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and rename main.c to main.cpp&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/550125?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2025 10:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae1fee1f-6ac1-4b71-863d-db6d42379206</guid><dc:creator>Pascal Hdz</dc:creator><description>&lt;p&gt;Which extra Kconfig variables did you enable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/550124?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2025 10:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcb0b00d-d285-4ba4-9638-c4423aa922f8</guid><dc:creator>Nicholas Braaten</dc:creator><description>&lt;p&gt;I used&amp;nbsp;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/tree/v3.2.0-preview1/samples/cellular/nrf_cloud_coap_fota"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v3.2.0-preview1/samples/cellular/nrf_cloud_coap_fota&lt;/a&gt;&amp;nbsp;as a starting point&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/550112?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2025 09:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d13f96a-9ade-4f12-a017-ec39ce3544c4</guid><dc:creator>Pascal Hdz</dc:creator><description>&lt;p&gt;Ok, did you based your implementation in a sample or application? I could try to reproduce these errors then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/550086?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2025 06:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa569fe4-f008-46f1-86f4-6369d0d6cd83</guid><dc:creator>Nicholas Braaten</dc:creator><description>&lt;p&gt;Hi, thanks for the follow up.&lt;/p&gt;
&lt;p&gt;Regarding the libraries I had to include before including&amp;nbsp;&lt;span&gt;nrf_cloud_coap.h, is because of the inclusion of &amp;lt;cbprintf_cxx.h&amp;gt; furher down in the chain in &amp;lt;nrf_cloud_coap.h&amp;gt;. Because of the&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifdef __cplusplus
extern &amp;quot;C&amp;quot; {
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;before the includes in&amp;nbsp;&amp;lt;nrf_cloud_coap.h&amp;gt;, this won&amp;#39;t work when compiling for C++ because of the templates used in&amp;nbsp;&amp;lt;cbprintf_cxx.h&amp;gt;. They can&amp;#39;t be compiled with C-linkage.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That is the reason for including them before including&amp;nbsp;&amp;lt;nrf_cloud_coap.h&amp;gt;, so they will be included with C++ name mangling. It&amp;#39;s just a hacky solution.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Btw; when compiling for C++, you will also find some other errors in some macros that is initializing structs in wrong order.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/550038?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 13:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe8031c-d8d5-4510-ae93-50a8d6184a61</guid><dc:creator>Pascal Hdz</dc:creator><description>&lt;p&gt;Hello Nicholas,&lt;/p&gt;
&lt;p&gt;Thanks for taking the time for reporting this. Indeed this is an area of improvement in our test setup that we will look to address in the short term. The fix for the missing brackets is under review now and I found it in another library, so both should be fine soon.&lt;/p&gt;
&lt;p&gt;Regarding the libraries that you recommend to add to nrf_cloud_coap.h, seems to me that these are impacting the application more than the library, could you expand why you came up with these libraries in specific?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Pascal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/549818?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 13:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c498fcac-5926-45c7-bacf-b7b57249d1b9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We will look into this during next week. I expect to get back to you by the end of next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bug report] nrf cloud headers not working for C++</title><link>https://devzone.nordicsemi.com/thread/549664?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 11:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da00e865-0bec-43ee-94d8-eab91fedc411</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for reporting these potential bugs. We will look into these issues internally. I expect to get back to you by the end of the week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>