<?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>Code in C++ NRF52 series with Keil uV5</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85232/code-in-c-nrf52-series-with-keil-uv5</link><description>Hello, 
 I am trying code (and compile) in C++ with a NRF52832 on Keil UV5. 
 In the C/C++ options i don&amp;#39;t see the compiler option for the preferred language when I open a project form the SDK15. 
 when I create a test project, I can choose whether the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Mar 2022 08:40:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85232/code-in-c-nrf52-series-with-keil-uv5" /><item><title>RE: Code in C++ NRF52 series with Keil uV5</title><link>https://devzone.nordicsemi.com/thread/355449?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 08:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1d9afdd-fea3-447e-942d-48e021532703</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF5 SDK is not tested with C++ compilers, it is not officially supported, and we know it use some constructs that are not valid C++. Hence, you cannot configure the project as a whole as a C++ project. That said, it should be possible to build your application files as C++ and the SDK files itself as C, but you may see a variety of issues. See for instance &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/4180/c-development-using-nrf51-sdk-on-keil/14946#14946"&gt;this old&lt;/a&gt; post.&lt;/p&gt;
&lt;p&gt;PS: The &lt;a href="https://www.nordicsemi.com/Products/Development-software/nRF-Connect-SDK"&gt;nRF Connect SDK&lt;/a&gt; supports C++.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>