<?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>APP_BUILD_VERSION error: &amp;quot;extra text after expected end of number&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109796/app_build_version-error-extra-text-after-expected-end-of-number</link><description>Hi guys, 
 I&amp;#39;m trying to use the Zephyr VERSION utilities in our app, and the compiler is choking on the APP_BUILD_VERSION macro in app_version.h: 
 &amp;quot; extra text after expected end of number&amp;quot;. 
 Seems like this macro should have a &amp;quot;ULL&amp;quot; suffix or something</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Apr 2024 09:45:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109796/app_build_version-error-extra-text-after-expected-end-of-number" /><item><title>RE: APP_BUILD_VERSION error: "extra text after expected end of number"</title><link>https://devzone.nordicsemi.com/thread/476507?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 09:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19cb5f68-6932-4aaa-a0d1-96910f4e25e8</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Alternative 1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;app_version.h&amp;gt;

#define STRINGIZE(x) #x
#define TO_STRING(x) STRINGIZE(x)


int main(void)
{
	printf(&amp;quot;Hello World! %s\n&amp;quot;, TO_STRING(APP_BUILD_VERSION));
	return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Alternative 2:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/272786b074227b4abcbe8f954d5bb8acf54f3dd3/kernel/banner.c#L21"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/272786b074227b4abcbe8f954d5bb8acf54f3dd3/kernel/banner.c#L21&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>