<?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 Segger Embedded Studio Extern C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40879/c-compilation-segger-embedded-studio-extern-c</link><description>Greetings, 
 I am relatively new to compilers and I would like some clarification on compiling C++ projects on Segger Embedded Studio with Nordic&amp;#39;s SDK vs. 14.2. 
 I am use to programming in Arduino and I prefer object oriented programming in C++ compared</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 02 Jun 2019 22:02:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40879/c-compilation-segger-embedded-studio-extern-c" /><item><title>RE: C++ Compilation Segger Embedded Studio Extern C</title><link>https://devzone.nordicsemi.com/thread/190394?ContentTypeID=1</link><pubDate>Sun, 02 Jun 2019 22:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba1f51d-ea0e-45ef-bb2c-76b987e7386b</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I have just checkout SES. &amp;nbsp;It has stripped down C++ to the bare minimum. &amp;nbsp;You won&amp;#39;t be able to use features of C++11 and above. &amp;nbsp; It claims to use latest GCC 8 but most of the C++ includes were removed from the distribution. &amp;nbsp;You&amp;#39;ll need to configure it to use the full GCC version if you wish to have full supports for C++.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ Compilation Segger Embedded Studio Extern C</title><link>https://devzone.nordicsemi.com/thread/164054?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 21:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5aa90cf-68d4-4df2-a124-9e1e5919fc60</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Silly me. It&amp;#39;s a 5v display.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ Compilation Segger Embedded Studio Extern C</title><link>https://devzone.nordicsemi.com/thread/163988?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 14:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af68b4a3-d769-4dd3-8c3e-99e66bc6b0d7</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Some progress. Resolved _Static_assert by #ifdef&amp;#39;ing in the C++ &amp;#39;static_assert&amp;#39; for the C++ case (app_util.h). Also had to add &amp;quot;extern c{}&amp;quot; to nrf_pwr_mgmt.h (SDK 14.2). Changed main.c to main.cpp in the&amp;nbsp;ble_ant_app_hrm_pca10040_s332 example. Compiles and works. Added in some additional code (LCD display class). Code compiles and runs, but the display is not working and the debugger keeps hanging. Freezes up the whole PC. Need to shut off the dev kit and wait for something (?) to time out before it comes back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ Compilation Segger Embedded Studio Extern C</title><link>https://devzone.nordicsemi.com/thread/163841?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 18:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7889dc4-36f9-4a41-8bce-298bfc26e1c5</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;For C++, use this library&amp;nbsp;&lt;a href="https://github.com/I-SYST/EHAL"&gt;https://github.com/I-SYST/EHAL&lt;/a&gt;. &amp;nbsp;But there are no projects were created for SES, only for Eclipse GCC. &amp;nbsp;However the code is independent of IDE so you can create a project with SES and have it compile.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ Compilation Segger Embedded Studio Extern C</title><link>https://devzone.nordicsemi.com/thread/163839?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 18:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f91f24-7c66-4f07-8336-c556ed9ec55c</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Well! That&amp;#39;s an unpleasant surprise :-(&lt;/p&gt;
&lt;p&gt;DevZone peeps, anyone got this working?&lt;/p&gt;
&lt;p&gt;At the moment the Segger GCC is refusing to recognize _Static_assert, despite setting C Language standard to gnu11 and C++ to gnu++14&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ Compilation Segger Embedded Studio Extern C</title><link>https://devzone.nordicsemi.com/thread/158957?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 07:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91b1f179-93a5-4f0c-9ef0-813692f99651</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Nordic doesn&amp;#39;t have any official support for C++ in SES (or C++ in any other compiler), so I&amp;#39;m afraid you have to figure this out yourself. You should not need to include the &amp;quot;__cplusplus&amp;quot; flag in the preprosessor, as it should already be defined in the header files, if it is not, then you should add it. You should be able to use the C functions in C++.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>