<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create a new .c .h file and write a custom function, but compile errors when other .c files are called. in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Create-a-new-c-h-file-and-write-a-custom-function-but-compile/m-p/806958#M5235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to modify&amp;nbsp;the makefile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#APPSRC += app_exceptions.c&lt;/SPAN&gt;
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_start&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_end_device_node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_zcl_task&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_buttons&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_led&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 23:38:51 GMT</pubDate>
    <dc:creator>mario_castaneda</dc:creator>
    <dc:date>2018-09-11T23:38:51Z</dc:date>
    <item>
      <title>Create a new .c .h file and write a custom function, but compile errors when other .c files are called.</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Create-a-new-c-h-file-and-write-a-custom-function-but-compile/m-p/806957#M5234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit;"&gt;I just created the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;app_led.c&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;app_led.h&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;files and define a function under the new folder, then called the function in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;app_main.c&lt;/STRONG&gt;.&amp;nbsp;This will cause a compilation&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;error&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit;"&gt;BUT, if I&amp;nbsp;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;d&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;efine the same function under&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;the&amp;nbsp;existing folder (app_end_device_node.c),&amp;nbsp;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;then called the function in&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;app_main.c&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;.&amp;nbsp;This will be&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;no error&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;STRONG style="background-color: #ffffff; border: 0px;"&gt;Is this because the .c.h file I created requires additional system configuration?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;STRONG style="background-color: #ffffff; border: 0px;"&gt;Please give me some&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;accurate advice&lt;/STRONG&gt;, I have spent too much time to solve this problem, thank you very much.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2018 03:49:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Create-a-new-c-h-file-and-write-a-custom-function-but-compile/m-p/806957#M5234</guid>
      <dc:creator>quanjunzhang</dc:creator>
      <dc:date>2018-09-09T03:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new .c .h file and write a custom function, but compile errors when other .c files are called.</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Create-a-new-c-h-file-and-write-a-custom-function-but-compile/m-p/806958#M5235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to modify&amp;nbsp;the makefile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#APPSRC += app_exceptions.c&lt;/SPAN&gt;
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_start&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_end_device_node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_zcl_task&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_buttons&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c
APPSRC &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; app_led&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;c&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 23:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Create-a-new-c-h-file-and-write-a-custom-function-but-compile/m-p/806958#M5235</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2018-09-11T23:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new .c .h file and write a custom function, but compile errors when other .c files are called.</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Create-a-new-c-h-file-and-write-a-custom-function-but-compile/m-p/806959#M5236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi &lt;SPAN style="color: #3d3d3d;"&gt;Mario&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;it's OK now.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for taking the precious time to help me solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="border: 0px;"&gt;Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 00:33:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Create-a-new-c-h-file-and-write-a-custom-function-but-compile/m-p/806959#M5236</guid>
      <dc:creator>quanjunzhang</dc:creator>
      <dc:date>2018-09-12T00:33:11Z</dc:date>
    </item>
  </channel>
</rss>

