<?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>Compiling crypto example with C++</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48402/compiling-crypto-example-with-c</link><description>Hi guys, 
 I know that there is no official support for C++ on NordicSemi side, but I just wonder if it would be possible to work with C++ in Segger IDE. I&amp;#39;m trying to integrate optiga IC in my project and started with this example in nRF5_SDK_v3.0. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2019 17:05:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48402/compiling-crypto-example-with-c" /><item><title>RE: Compiling crypto example with C++</title><link>https://devzone.nordicsemi.com/thread/191871?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 17:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fe6f240-d145-4349-a512-fdb9a06e4fe1</guid><dc:creator>Mojo</dc:creator><description>&lt;p&gt;SES supports C++ : Yes and No. &amp;nbsp;It has limited C++ support. &amp;nbsp;Their GCC&amp;nbsp;distribution has&amp;nbsp;a few C++ includes files removed. &amp;nbsp;You can compile naked C++ but not using advance C++11 and above features. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Compile error : not sure why but I do compile crypto in C++ no problem. &amp;nbsp;I am not using SES though. &amp;nbsp;I use full GCC distribution with Eclipse.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling crypto example with C++</title><link>https://devzone.nordicsemi.com/thread/191855?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 16:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca425518-d49e-436b-9699-3fe80eb0025f</guid><dc:creator>awneil</dc:creator><description>[quote userid="75799" url="~/f/nordic-q-a/48402/compiling-crypto-example-with-c"]wonder if it would be possible to work with C++ in Segger IDE[/quote]
&lt;p&gt;Yes - SES supports C++&lt;/p&gt;
[quote userid="75799" url="~/f/nordic-q-a/48402/compiling-crypto-example-with-c"]I believe there is a problem with[/quote]
&lt;p&gt;&lt;em&gt;(stupid forum can&amp;#39;t quote a post with code in it)&lt;/em&gt;&lt;/p&gt;
[quote userid="75799" url="~/f/nordic-q-a/48402/compiling-crypto-example-with-c"]definitions without closing brace[/quote]
&lt;p&gt;&lt;em&gt;&lt;/em&gt;That would seem likely: as the only time they&amp;#39;d show up is when using C++ - but C++ is not supported!&lt;/p&gt;
[quote userid="75799" url="~/f/nordic-q-a/48402/compiling-crypto-example-with-c"]I appreciate if you can help me with that[/quote]
&lt;p&gt;The easiest way to solve preprocessor problems like this is to look at the preprocessor output.&lt;/p&gt;
&lt;p&gt;Not sure if SES has an easy/direct way to do that (you&amp;#39;d have to check the Segger docs), but the GCC option you require is &lt;strong&gt;-save-temps&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html"&gt;https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html&lt;/a&gt;&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></channel></rss>