<?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>Kinetis Design Studio中的主题 Re: undefined reverence problem.</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645091#M8392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do have the block&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#ifndef X&lt;BR /&gt;#define X (1)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/* stuff */&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#endif&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;in my code&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;it does exits and is not misspelled.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Even when I only have to one #include file.h I still get the same error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2017 23:56:38 GMT</pubDate>
    <dc:creator>jacewalton</dc:creator>
    <dc:date>2017-04-04T23:56:38Z</dc:date>
    <item>
      <title>undefined reverence problem.</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645089#M8390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in PE_Types.h there is a macro&lt;/P&gt;&lt;P&gt;#define PE_LDD_COMPONENT_FLASH_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x0DU&lt;/P&gt;&lt;P&gt;I reverence that macro in FLASH.c&amp;nbsp;&lt;/P&gt;&lt;P&gt;in FLASH.c there is a #include for FLASH.h (which has #include PE_Types.h) as well as PE_Types.h in it. however I am getting build errors in my code that states&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;'PE_LDD_COMPONENT_FLASH_ID' undeclared (first use in this function) FLASH.c /wt+FX/Generated_Code line 282 C/C++ Problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basicaly I use #include PE_Types.h twice and it still does not recognize the macro. if I redeclair the macro in FLASH.c it builds fine but why is PE_Types not recognized?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not had this problem before. what is causing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 00:18:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645089#M8390</guid>
      <dc:creator>jacewalton</dc:creator>
      <dc:date>2017-04-04T00:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reverence problem.</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645090#M8391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Collisions in header guards for multiple inclusions can cause these kind of things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x.h contains:&lt;/P&gt;&lt;P&gt;#ifndef X&lt;BR /&gt;#define X (1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* stuff */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet some previous thing defined X so that subsequent header file is never&amp;nbsp;processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To track down these kind of problems add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#error __FILE__ __LINE__&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inside #if s to see where the code actually gets.&lt;BR /&gt;#error will stop the compiler at that point.&lt;/P&gt;&lt;P&gt;Remove that one and see if gets to the next one that you think it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is the error message 'undeclared' or 'undefined' these are two different things?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'undefined' would indicate a problem with the macro definition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;'undeclared indicates a problem with its usage. &lt;BR /&gt;&amp;nbsp;Does the variable actually exist? &amp;nbsp;Is it misspelled in some subtle way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:12:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645090#M8391</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2017-04-04T12:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reverence problem.</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645091#M8392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do have the block&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#ifndef X&lt;BR /&gt;#define X (1)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/* stuff */&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#endif&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;in my code&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;it does exits and is not misspelled.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Even when I only have to one #include file.h I still get the same error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 23:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645091#M8392</guid>
      <dc:creator>jacewalton</dc:creator>
      <dc:date>2017-04-04T23:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reverence problem.</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645092#M8393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &amp;nbsp;&amp;nbsp; Jace,&lt;/P&gt;&lt;P&gt;I think after you add the definition to the file of "PE_Types.h",&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt; &lt;SPAN class="property macro token"&gt;#define PE_LDD_COMPONENT_FLASH_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0DU‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you click the "generate code " button ,then the definition disappeared . Please check it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 02:02:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reverence-problem/m-p/645092#M8393</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-04-07T02:02:31Z</dc:date>
    </item>
  </channel>
</rss>

