<?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>How can i use a newer c standard (c11 or c17) when compiling my zephyr application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94829/how-can-i-use-a-newer-c-standard-c11-or-c17-when-compiling-my-zephyr-application</link><description>I like to enable compiling my code with c11 or c17 but when compiling with west this does not seem to be possible. 
 To force the compiler to use c11, I used option: 
 CONFIG_COMPILER_OPT=&amp;quot;-std=c11&amp;quot; 
 However, this is overruled in the build, as can be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Dec 2022 14:12:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94829/how-can-i-use-a-newer-c-standard-c11-or-c17-when-compiling-my-zephyr-application" /><item><title>RE: How can i use a newer c standard (c11 or c17) when compiling my zephyr application</title><link>https://devzone.nordicsemi.com/thread/400871?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 14:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7afc628e-2106-4791-8a7d-e80c454eb1d0</guid><dc:creator>maarten v</dc:creator><description>&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;inserting:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;set_property(GLOBAL PROPERTY CSTD c11)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;in CMakeLists.txt before&lt;/p&gt;
&lt;p&gt;&lt;code&gt;find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;did the trick.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i use a newer c standard (c11 or c17) when compiling my zephyr application</title><link>https://devzone.nordicsemi.com/thread/400841?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 13:08:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72bd46be-bffd-479b-84ee-8ea2be886a0b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;From the &lt;a href="https://discord.com/channels/720317445772017664/720317445772017667/989788754438934558"&gt;zephyr discord&lt;/a&gt;&amp;nbsp;(join &lt;a href="https://discord.com/invite/Ck7jw53nU2"&gt;here &lt;/a&gt;first if you haven&amp;#39;t already)&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0447.pastedimage1671109845987v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also check out&amp;nbsp;&lt;a title="https://docs.zephyrproject.org/3.1.0/develop/languages/c/index.html" href="https://docs.zephyrproject.org/3.1.0/develop/languages/c/index.html" rel="noopener noreferrer" target="_blank"&gt;https://docs.zephyrproject.org/3.1.0/develop/languages/c/index.html&lt;/a&gt;&amp;nbsp;in general.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i use a newer c standard (c11 or c17) when compiling my zephyr application</title><link>https://devzone.nordicsemi.com/thread/400699?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 16:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e7f2904-78cc-42ab-864d-cc9b6f55bae6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me ask a bit internally and see if anyone have some pointers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>