<?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>Compile C++ code on Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30880/compile-c-code-on-segger-embedded-studio</link><description>Hi everyone :D 
 
 I&amp;#39;m not being able to compile a c++ code on segger embedded studio. 
 The same code compiles with the Makefile provided in the SDK 14.2, but not with the segger solution on the same SDK. 
 
 I change the main extension to cpp (ble_app_blinky</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Mar 2018 11:10:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30880/compile-c-code-on-segger-embedded-studio" /><item><title>RE: Compile C++ code on Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/124354?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 11:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2149b330-b449-4496-b8a9-4a91c11f6f15</guid><dc:creator>grzegorz</dc:creator><description>&lt;p&gt;I don&amp;#39;t know about SES, but in GCC you need to set the C++ standard option to C11 to have static_assert.. Adding following line in Makefile helps:&lt;/p&gt;
&lt;p&gt;CXXFLAGS += -std=c++0x&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile C++ code on Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/123144?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 21:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a2a6822-95ae-4957-aa5d-31d953147d9e</guid><dc:creator>RenatoMorelli</dc:creator><description>&lt;p&gt;Thanks for your help, Rune!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to disable asserts for now to try this&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Renato Morelli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile C++ code on Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/123130?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 16:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d7cb881-46bf-4714-a88c-dec427f3ba14</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;Nordic Semiconductor doesn&amp;#39;t have any official support for C++ in SES (or any other compiler) so you will have to do some of the error searching here yourself.&amp;nbsp;The implementation of static asserts differ between compilers, so depending on your choice of compiler you need to change it. To get up and running quickly you may also look into just removing static asserts for now until you actually need them. They are only compile-time&amp;nbsp;operations to sanity check various parameters, but you can just remove them all as shown below and the code will behave the same runtime.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define STATIC_ASSERT_SIMPLE(EXPR)
#define STATIC_ASSERT_MSG(EXPR, MSG)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The alternative is to figure out how to implement them in your compiler.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>