<?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++ compilation error with SDK 12.1.0 and 12.0.0: error: expected declaration before &amp;#39;}&amp;#39; token</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17480/c-compilation-error-with-sdk-12-1-0-and-12-0-0-error-expected-declaration-before-token</link><description>Getting the error when trying to compile the C++ project with SDK 12.1.0 : 
 In file included from .../components/softdevice/common/softdevice_handler/softdevice_handler.h:41:0,
 from main.cpp:11:
.../components/softdevice/common/softdevice_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Nov 2016 09:34:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17480/c-compilation-error-with-sdk-12-1-0-and-12-0-0-error-expected-declaration-before-token" /><item><title>RE: C++ compilation error with SDK 12.1.0 and 12.0.0: error: expected declaration before '}' token</title><link>https://devzone.nordicsemi.com/thread/67188?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 09:34:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1caf0c04-cfdb-4e73-9346-908a87d869db</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi pratoriandroid, Yes. this is convenient as this thread link will be added to &lt;a href="https://devzone.nordicsemi.com/question/93241/what-are-sdk-12x0-known-issues/"&gt;known_issues&lt;/a&gt; so that everyone can find it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ compilation error with SDK 12.1.0 and 12.0.0: error: expected declaration before '}' token</title><link>https://devzone.nordicsemi.com/thread/67187?ContentTypeID=1</link><pubDate>Sat, 05 Nov 2016 03:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6746ab17-a14c-41d8-ad71-5fa5fcb15afb</guid><dc:creator>praetoriandroid</dc:creator><description>&lt;p&gt;Thank you. I didn&amp;#39;t found an official issue tracker or any other way to send a feedback. Is it convenient for you if the bug reports and/or fixes will be posted here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ compilation error with SDK 12.1.0 and 12.0.0: error: expected declaration before '}' token</title><link>https://devzone.nordicsemi.com/thread/67186?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2016 15:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6198b08-0761-42f1-818d-dcc6ea9df96b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;As a Nordic employee, I can confirm this bug and have tested the patch.&lt;/p&gt;
&lt;p&gt;There is also a bug in &lt;em&gt;bsp.h&lt;/em&gt;. Here is a patch:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;diff -rcN nRF5-SDK-12.1.0/examples/bsp/bsp.h nRF5-SDK-12.1.0/examples/bsp/bsp_fix.h
*** nRF5-SDK-12.1.0/examples/bsp/bsp.h       Tue Oct  4 14:09:12 2016
--- nRF5-SDK-12.1.0/examples/bsp/bsp_fix.h   Thu Nov  3 16:03:07 2016
***************
*** 32,37 ****
--- 32,41 ----
  #include &amp;lt;stdbool.h&amp;gt;
  #include &amp;quot;boards.h&amp;quot;

+ #ifdef __cplusplus
+ extern &amp;quot;C&amp;quot; {
+ #endif
+
  #if !defined(BSP_DEFINES_ONLY) &amp;amp;&amp;amp; !defined(BSP_SIMPLE)
  #include &amp;quot;app_button.h&amp;quot;

***************
*** 45,54 ****
   */
  #ifdef BSP_UART_SUPPORT
  #include &amp;quot;app_uart.h&amp;quot;
-
- #ifdef __cplusplus
- extern &amp;quot;C&amp;quot; {
- #endif
  #endif // BSP_UART_SUPPORT

  #define BUTTON_ERASE_BONDING BSP_BUTTON_0_MASK
--- 49,54 ----
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ compilation error with SDK 12.1.0 and 12.0.0: error: expected declaration before '}' token</title><link>https://devzone.nordicsemi.com/thread/67185?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2016 21:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a06be7c5-9296-44d0-bc18-846cca64c5e4</guid><dc:creator>praetoriandroid</dc:creator><description>&lt;p&gt;Here is the patch:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;diff -rcN nRF5-SDK-12.1.0/components/proprietary_rf/gzll/nrf_gzll_error.h nRF5-SDK-12.1.0-fix/components/proprietary_rf/gzll/nrf_gzll_error.h
*** nRF5-SDK-12.1.0/components/proprietary_rf/gzll/nrf_gzll_error.h	2016-10-04 14:09:12.000000000 +0300
--- nRF5-SDK-12.1.0-fix/components/proprietary_rf/gzll/nrf_gzll_error.h	2016-11-03 01:06:19.489624670 +0300
***************
*** 22,27 ****
--- 22,31 ----
  #include &amp;quot;nrf_gzll.h&amp;quot;
  #include &amp;quot;app_error.h&amp;quot;
  
+ #ifdef __cplusplus
+ extern &amp;quot;C&amp;quot; {
+ #endif
+ 
  #define GAZELLE_ERROR_CODE_CHECK(GZLL_RESULT)                                       \
      do                                                                              \
      {                                                                               \
diff -rcN nRF5-SDK-12.1.0/components/softdevice/common/softdevice_handler/ant_stack_handler_types.h nRF5-SDK-12.1.0-fix/components/softdevice/common/softdevice_handler/ant_stack_handler_types.h
*** nRF5-SDK-12.1.0/components/softdevice/common/softdevice_handler/ant_stack_handler_types.h	2016-10-04 14:09:12.000000000 +0300
--- nRF5-SDK-12.1.0-fix/components/softdevice/common/softdevice_handler/ant_stack_handler_types.h	2016-11-03 01:18:58.564026665 +0300
***************
*** 65,70 ****
--- 65,74 ----
   */
  uint32_t softdevice_ant_evt_handler_set(ant_evt_handler_t ant_evt_handler);
  
+ #ifdef __cplusplus
+ }
+ #endif
+ 
  #else
  
  // The ANT Stack support is not required.
***************
*** 73,83 ****
  
  #endif // ANT_STACK_SUPPORT_REQD
  
- 
- #ifdef __cplusplus
- }
- #endif
- 
  #endif // ANT_STACK_HANDLER_TYPES_H__
  
  /** @} */
--- 77,82 ----
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>