<?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: } bracket missing message when I compile in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/bracket-missing-message-when-I-compile/m-p/209718#M8216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wierd!&lt;BR /&gt;I haven't used C in a long while and was going crazy with this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jun 2010 22:01:42 GMT</pubDate>
    <dc:creator>z537z</dc:creator>
    <dc:date>2010-06-29T22:01:42Z</dc:date>
    <item>
      <title>} bracket missing message when I compile</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/bracket-missing-message-when-I-compile/m-p/209716#M8214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a nice flash write/erase&amp;nbsp;project working&amp;nbsp;in C++ but ran into the code size limit, so I'm moving to C code.&lt;/P&gt;&lt;P&gt;I keep getting a compile error and I've narrowed it down to this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;hidef.h&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //for EnableInterrupts macro#include "derivative.h" //include peripheral declarationsvoid main(void){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //clock setup&amp;nbsp; ICSC1=0x04; //select Internal Clock Source&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&amp;nbsp; for (i = 0; i &amp;lt; 100; i++);&amp;nbsp; for(;;) {&amp;nbsp;&amp;nbsp;&amp;nbsp; __RESET_WATCHDOG();&amp;nbsp;&amp;nbsp; } //for}//main&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The int i; declaration gives me the error of C2801:&amp;nbsp; ' } 'missing&amp;nbsp; - if I move it above the ICSC1 register setting it compiles fine.&lt;/P&gt;&lt;P&gt;This should be stupid simple, but what am I missing here???&lt;BR /&gt;&lt;BR /&gt;I'm using 32/64 float support if that makes a difference (created project with wizard).&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 21:50:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/bracket-missing-message-when-I-compile/m-p/209716#M8214</guid>
      <dc:creator>z537z</dc:creator>
      <dc:date>2010-06-29T21:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: } bracket missing message when I compile</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/bracket-missing-message-when-I-compile/m-p/209717#M8215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In C declarations have to be at the beginning of a scope.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;void main(void){  int i;      //clock setup  ICSC1=0x04; //select Internal Clock Source &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 21:56:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/bracket-missing-message-when-I-compile/m-p/209717#M8215</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-06-29T21:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: } bracket missing message when I compile</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/bracket-missing-message-when-I-compile/m-p/209718#M8216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wierd!&lt;BR /&gt;I haven't used C in a long while and was going crazy with this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 22:01:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/bracket-missing-message-when-I-compile/m-p/209718#M8216</guid>
      <dc:creator>z537z</dc:creator>
      <dc:date>2010-06-29T22:01:42Z</dc:date>
    </item>
  </channel>
</rss>

