<?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: Problem with include files in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-include-files/m-p/1031478#M15369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="285141" data-username="juliancox" href="https://community.nxp.com/people/juliancox" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Julian Cox&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Could you please send your project or a simple project that can reproduce the issue,&lt;/P&gt;&lt;P&gt;I will check it&amp;nbsp; on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2019 09:57:54 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-11-25T09:57:54Z</dc:date>
    <item>
      <title>Problem with include files</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-include-files/m-p/1031477#M15368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a CW11 project for a MC9S08QE processor using ProcessorExpert.&lt;/P&gt;&lt;P&gt;The significant components are SPI master (SM1) and a Free counter (FC1).&lt;/P&gt;&lt;P&gt;The projet comprises four files, main.c, main.h, events.c and events.h. The only include statements are&amp;nbsp;&lt;/P&gt;&lt;P style="color: #931a68; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;#include&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3933ff;"&gt;"main.h" in main.c and&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #931a68; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;#include&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;SPAN style="color: #3933ff;"&gt;"events.h" in events.c&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I declare a variable in one .h file and declare it as external in the other I get the error:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;ERROR L1818: Symbol 24 - HexTemp duplicated in SM1_c.obj and Events_c.obj.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;I get the same error message for up to 10 variables and sometimes the first reference is CPU.c.obj.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tried re-naming the variable to no avail and I also tried deleting the offending .obj files.&lt;/P&gt;&lt;P&gt;I get the same problem when I cut from main .h file and paste it into events.h.&lt;/P&gt;&lt;P&gt;My only solution is to cut the offending variable from events.h and paste it into events.c and then I get no errors.&lt;/P&gt;&lt;P&gt;I re-created a new project with the same components and I got the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Nov 2019 12:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-include-files/m-p/1031477#M15368</guid>
      <dc:creator>juliancox</dc:creator>
      <dc:date>2019-11-23T12:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with include files</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-include-files/m-p/1031478#M15369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="285141" data-username="juliancox" href="https://community.nxp.com/people/juliancox" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Julian Cox&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Could you please send your project or a simple project that can reproduce the issue,&lt;/P&gt;&lt;P&gt;I will check it&amp;nbsp; on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 09:57:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-include-files/m-p/1031478#M15369</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-11-25T09:57:54Z</dc:date>
    </item>
  </channel>
</rss>

