<?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: CW10 + HCS08 + file not found in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149419#M1973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that it isn't &amp;lt;hidef.h&amp;gt; or "derivative.h" that it can't find?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 19:00:45 GMT</pubDate>
    <dc:creator>Geoff_L</dc:creator>
    <dc:date>2010-09-22T19:00:45Z</dc:date>
    <item>
      <title>CW10 + HCS08 + file not found</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149418#M1972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just installed CW10 for Microcontroller (HCS08).&lt;/P&gt;&lt;P&gt;I created a project with the wizard and the basic generated code works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyhow, now I want to use a simple header (.h) and source(.c) files. When I try to compile, I have the error message : C5200 file not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My project is very simple. I only include the file "f.h" in the main.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILE main.c :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;hidef.h&amp;gt; /* for EnableInterrupts macro */#include "derivative.h" /* include peripheral declarations */&lt;STRONG&gt;#include "f.h"&lt;/STRONG&gt;void main(void) {&amp;nbsp; EnableInterrupts;&amp;nbsp; /* include your code here */&amp;nbsp;&amp;nbsp;&amp;nbsp; for(;;) {&amp;nbsp;&amp;nbsp;&amp;nbsp; __RESET_WATCHDOG(); /* feeds the dog */&amp;nbsp; } /* loop forever */&amp;nbsp; /* please make sure that you never leave main */}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file f.h and f.c only have a simple function which does a basic addition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;int fxx(int x){&amp;nbsp;&amp;nbsp;&amp;nbsp; return&amp;nbsp; x;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is wrong with this code ?&lt;/P&gt;&lt;P&gt;Ican see the file in the IDE under the Sources directory but it seems CW10 (Eclipse) needs more information.&lt;/P&gt;&lt;P&gt;How do you add a simple header/source file in CW10 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;&lt;P&gt;ssinfod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:51:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149418#M1972</guid>
      <dc:creator>ssinfod</dc:creator>
      <dc:date>2020-10-29T08:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: CW10 + HCS08 + file not found</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149419#M1973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that it isn't &amp;lt;hidef.h&amp;gt; or "derivative.h" that it can't find?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 19:00:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149419#M1973</guid>
      <dc:creator>Geoff_L</dc:creator>
      <dc:date>2010-09-22T19:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: CW10 + HCS08 + file not found</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149420#M1974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No it says "f.h" file not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a copy of the message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;C5200 f.h file not found main.c Test/Sources line 4 C/C++ Problem&lt;/PRE&gt;&lt;P&gt;I have attached the project with this post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;ssinfod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149420#M1974</guid>
      <dc:creator>ssinfod</dc:creator>
      <dc:date>2020-10-29T08:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: CW10 + HCS08 + file not found</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149421#M1975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The compiler include path only contains&amp;nbsp;Project_Headers, but not the sources folder.&lt;/P&gt;&lt;P&gt;Therefore either move the header file into Project_Headers or add an include path to the Source folder.&lt;/P&gt;&lt;P&gt;The include paths for the compiler are defined in the properties of the project,&lt;/P&gt;&lt;P&gt;"C/C++ Build/Settings" Tab, select "HCS08 Compiler/Input" click on the "+" Button in Include File Path (-I) box&lt;/P&gt;&lt;P&gt;and add&amp;nbsp;"${ProjDirPath}/Sources"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 12:14:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149421#M1975</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-09-23T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: CW10 + HCS08 + file not found</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149422#M1976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both solutions work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssinfod.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Sep 2010 20:07:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/CW10-HCS08-file-not-found/m-p/149422#M1976</guid>
      <dc:creator>ssinfod</dc:creator>
      <dc:date>2010-09-25T20:07:43Z</dc:date>
    </item>
  </channel>
</rss>

