<?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>Manual example compilation using makefile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47944/manual-example-compilation-using-makefile</link><description>Hello, 
 I was able to flash demo .hex to my nRF52840DKs from this ( https://github.com/NordicPlayground/nrf52-ble-multi-link-multi-role ) project, but now I would like to make some changes in the source to increase the power of the signal on both aggregator</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 May 2019 12:13:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47944/manual-example-compilation-using-makefile" /><item><title>RE: Manual example compilation using makefile</title><link>https://devzone.nordicsemi.com/thread/190057?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 12:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03fc22f1-995a-4b25-bcb9-efc5bc1b06b2</guid><dc:creator>girts</dc:creator><description>&lt;p&gt;When I remove all the lines containing undefined functions/variables and add couple other sources to makefile, I finally I`m able to successfully compile the example, but when I flash the example in nRF, it just doesn`t work. Demo hex works, but the one I compiled doesn`t. Is there anybody who has got running hex when compiling this example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manual example compilation using makefile</title><link>https://devzone.nordicsemi.com/thread/190048?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 11:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f76f4668-f257-47e8-9375-a8ed5e3ac2cb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So you have to do the other option, then - provide the definitions!&lt;/p&gt;
&lt;p&gt;Have you done a text search to find if they are actually there anywhere?&lt;/p&gt;
&lt;p&gt;Quite possibly, they are disabled by a #if - and you&amp;#39;re missing the required definition .&lt;/p&gt;
&lt;p&gt;This is standard &amp;#39;C&amp;#39; stuff - not really specific to Nordic.&lt;/p&gt;
&lt;p&gt;It has been noted before that the examples on GitHub are not necessarily always complete - can you find a similar example in the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manual example compilation using makefile</title><link>https://devzone.nordicsemi.com/thread/190047?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 10:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ca7b7a6-092e-4e3b-af72-255d443ea56f</guid><dc:creator>girts</dc:creator><description>&lt;p&gt;Thanks for your answer, but as I`m trying to compile an example, I assume that every line in all the codes there is for an reason. If I comment out these lines in ugui.h, I have to comment out more code in ugui.c, where these declarations are used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manual example compilation using makefile</title><link>https://devzone.nordicsemi.com/thread/190023?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 08:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d20bc300-a346-42a6-a3ce-bc698f24fe7e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Look at what those messages are telling you:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;error: &amp;#39;_HW_draw_line&amp;#39; declared &amp;#39;static&amp;#39; but never defined [-Werror=unused-function]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So you have &amp;#39;static&amp;#39; &lt;em&gt;&lt;strong&gt;declarations&lt;/strong&gt; &lt;/em&gt;- but no corresponding &lt;em&gt;&lt;strong&gt;definitions&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;So, either:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Remove the declarations - if you really don&amp;#39;t need them, or&lt;/li&gt;
&lt;li&gt;Provide the definitions.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I find this a lot easier to follow in an IDE - where you can see both the messages and the corresponding source code together at the same time, and it allows you to click the error and go straight to the corresponding line in the source file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>