<?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: expression syntax error in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/expression-syntax-error/m-p/189519#M6733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- Cannot find Header file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where is the header file located on your disk?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is it located in the same folder as the source file? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If this is the case, you need to add the path to your .h file to the User path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is done as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Click right on the project name in the CodeWarrior Project view&lt;/LI&gt;&lt;LI&gt;Select Properties.&lt;/LI&gt;&lt;LI&gt;Switch to &lt;STRONG&gt;&lt;EM&gt;C/C++ Build&lt;/EM&gt;&lt;/STRONG&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Settings&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;ColdFire Compiler&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/EM&gt; page.&lt;/LI&gt;&lt;LI&gt;Click on the first icon to the left after &lt;STRONG&gt;User Path&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Specify the path to your .h file. If it is located in your project's Sources sub-directory, specify&amp;nbsp; "&lt;EM&gt;${ProjDirPath}\Sources&lt;/EM&gt;" there.&lt;/LI&gt;&lt;LI&gt;Click on OK to save the changes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- Error 'expression syntax error'&lt;/P&gt;&lt;P&gt;&amp;nbsp; For this one it might be interesting to look at the preprocessing listing file.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the source file in an edit window&lt;/LI&gt;&lt;LI&gt;Click right inside of the window &lt;/LI&gt;&lt;LI&gt;Select Preprocess. A new windows opens displaying the preprocessor listing.&lt;/LI&gt;&lt;LI&gt;Check content of ths file. All macros and header files are expanded here so it might be easier to catch what is not working.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 14:10:44 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2012-09-11T14:10:44Z</dc:date>
    <item>
      <title>expression syntax error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/expression-syntax-error/m-p/189518#M6732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, sorry if this is an apparent question that I just am missing, I am using Codewarrior v10.2 and I am having some problems compiling. My target is a MCF54418, and I started this project from a sample mqx project which built fine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nearly everyline is returning an error 'expression syntax error'. The project also is saying that files cannot be opened, for example I have a c file and header, both in the project, and the C file says the header can't be opened though its in the project and I can open it. Again, sorry if this is obvious but I do not know what is happening.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance, &lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 13:53:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/expression-syntax-error/m-p/189518#M6732</guid>
      <dc:creator>kdavis</dc:creator>
      <dc:date>2012-09-11T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: expression syntax error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/expression-syntax-error/m-p/189519#M6733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- Cannot find Header file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where is the header file located on your disk?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is it located in the same folder as the source file? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If this is the case, you need to add the path to your .h file to the User path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is done as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Click right on the project name in the CodeWarrior Project view&lt;/LI&gt;&lt;LI&gt;Select Properties.&lt;/LI&gt;&lt;LI&gt;Switch to &lt;STRONG&gt;&lt;EM&gt;C/C++ Build&lt;/EM&gt;&lt;/STRONG&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Settings&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;ColdFire Compiler&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/EM&gt; page.&lt;/LI&gt;&lt;LI&gt;Click on the first icon to the left after &lt;STRONG&gt;User Path&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Specify the path to your .h file. If it is located in your project's Sources sub-directory, specify&amp;nbsp; "&lt;EM&gt;${ProjDirPath}\Sources&lt;/EM&gt;" there.&lt;/LI&gt;&lt;LI&gt;Click on OK to save the changes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- Error 'expression syntax error'&lt;/P&gt;&lt;P&gt;&amp;nbsp; For this one it might be interesting to look at the preprocessing listing file.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the source file in an edit window&lt;/LI&gt;&lt;LI&gt;Click right inside of the window &lt;/LI&gt;&lt;LI&gt;Select Preprocess. A new windows opens displaying the preprocessor listing.&lt;/LI&gt;&lt;LI&gt;Check content of ths file. All macros and header files are expanded here so it might be easier to catch what is not working.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 14:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/expression-syntax-error/m-p/189519#M6733</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-09-11T14:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: expression syntax error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/expression-syntax-error/m-p/189520#M6734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, I thought I had added it to the path, but I guess not. And I did not know about the preprocess listing, that helped me identify what was happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 16:27:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/expression-syntax-error/m-p/189520#M6734</guid>
      <dc:creator>kdavis</dc:creator>
      <dc:date>2012-09-11T16:27:17Z</dc:date>
    </item>
  </channel>
</rss>

