<?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>CodeWarrior for MCUのトピックRe: C file can't find local header file to include</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269892#M10135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was aware of this already…..which I was trying to avoid. You don’t have to do this in raw Eclipse. Eclipse knows about the path to any sub-folder without having to specify it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it’s an easy fix to add the paths but we have up to 10 sub-folders in our project managed by several people. I was hoping to make the sub-folders isolated from each other from a build point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would CW change this Eclipse behavior I wonder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From: Carl Heyendal&lt;/P&gt;&lt;P&gt;Sent: Wednesday, April 17, 2013 9:31 AM&lt;/P&gt;&lt;P&gt;To: 'jive-1546135996-4j7m-2-6yms@freescale-phx.hosted.jivesoftware.com'&lt;/P&gt;&lt;P&gt;Subject: RE: &lt;A href="CodeWarrior for MCU"&gt;CodeWarrior for MCU&lt;/A&gt; - C file can't find local header file to include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jeff. I’ll give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 13:47:40 GMT</pubDate>
    <dc:creator>carlh</dc:creator>
    <dc:date>2013-04-17T13:47:40Z</dc:date>
    <item>
      <title>C file can't find local header file to include</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269889#M10132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First post and first time working with Code Warrior, but not with Eclipse...hence my question.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Eclipse you can create sub-folders containing C code files and local header files, and Eclipse can build all the source in any sub-folder.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But In CW the same is not true. I created a sub-folder containing a C file which includes a local header file found in the same folder. The compiler does find and tries to compile the C file, but fails because it can't find the local header file to include....which is not standard C compiling behaviour.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that all the compiling is carried out in a different location from the source location for the project, but is there any setting to make it go back and look in the original C file folder for the local header? I'm hoping I don't have to add all the paths for all the source folders to the project.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 17:26:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269889#M10132</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-16T17:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: C file can't find local header file to include</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269890#M10133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into this same issue.&lt;/P&gt;&lt;P&gt;Yes, CodeWarrior has a setting to allow the compiler to look for the local header file in the same folder as the C file.&lt;/P&gt;&lt;P&gt;Go to Project -&amp;gt; Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; Compiler -&amp;gt; Input.&lt;/P&gt;&lt;P&gt;There you will find a box for "User Path".&lt;/P&gt;&lt;P&gt;Add your C file folder path there and you should be good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--JeffS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 12:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269890#M10133</guid>
      <dc:creator>JeffSumey</dc:creator>
      <dc:date>2013-04-17T12:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: C file can't find local header file to include</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269891#M10134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeff. I’ll give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 13:31:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269891#M10134</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-17T13:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: C file can't find local header file to include</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269892#M10135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was aware of this already…..which I was trying to avoid. You don’t have to do this in raw Eclipse. Eclipse knows about the path to any sub-folder without having to specify it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it’s an easy fix to add the paths but we have up to 10 sub-folders in our project managed by several people. I was hoping to make the sub-folders isolated from each other from a build point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would CW change this Eclipse behavior I wonder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From: Carl Heyendal&lt;/P&gt;&lt;P&gt;Sent: Wednesday, April 17, 2013 9:31 AM&lt;/P&gt;&lt;P&gt;To: 'jive-1546135996-4j7m-2-6yms@freescale-phx.hosted.jivesoftware.com'&lt;/P&gt;&lt;P&gt;Subject: RE: &lt;A href="CodeWarrior for MCU"&gt;CodeWarrior for MCU&lt;/A&gt; - C file can't find local header file to include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jeff. I’ll give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 13:47:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269892#M10135</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-17T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: C file can't find local header file to include</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269893#M10136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subfolders, ahh...&lt;/P&gt;&lt;P&gt;On that same settings panel, there is also a "User Recursive Path (-ir)" setting.&lt;/P&gt;&lt;P&gt;Perhaps this will do what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--JeffS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 01:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269893#M10136</guid>
      <dc:creator>jsumey</dc:creator>
      <dc:date>2013-04-18T01:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: C file can't find local header file to include</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269894#M10137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was staring right at me!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes your ‘-ir’ suggestion works, though I wonder why you have to do this in CW and not in Eclipse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a better solution than including paths to every sub-folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 12:57:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269894#M10137</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-18T12:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: C file can't find local header file to include</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269895#M10138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know that answer, but I'm glad this solution solved your issue!&lt;/P&gt;&lt;P&gt;/jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 22:33:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-file-can-t-find-local-header-file-to-include/m-p/269895#M10138</guid>
      <dc:creator>jsumey</dc:creator>
      <dc:date>2013-04-18T22:33:36Z</dc:date>
    </item>
  </channel>
</rss>

