<?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>8-bit MicrocontrollersのトピックRe: Structure Problem</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178607#M12726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CrasyCat,&lt;/P&gt;&lt;P&gt;&amp;nbsp; As you instructed I checked the preprocessor output: for my project.&lt;/P&gt;&lt;PRE&gt;extern struct{  unsigned char unit : 1;  unsigned char audio : 1;  unsigned char memPointer1;  unsigned char memPointer2;  unsigned char memStatus;  float alCount;  float DoCount;} prjData;typedef struct Prj{  unsigned char unit : 1;  unsigned char audio : 1;  unsigned char memPointer1;  unsigned char memPointer2;  unsigned char memStatus;  float alCount;  float DoCount;};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In the first type of declaration I get the errors "&lt;STRONG&gt;C1067: Object is missing decl specifies&lt;/STRONG&gt;" and &lt;STRONG&gt;C 2450 Expected ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For second type of declaration I get errors &lt;STRONG&gt;"C 1009 Invalid redeclaration of &amp;lt;structure-name&amp;gt;"&lt;/STRONG&gt; &lt;STRONG&gt;"C1067: Object is missing decl specifies&lt;/STRONG&gt;" and "&lt;STRONG&gt;C 2450 Expected ;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have thoroughly checked my project the structure name is no redeclared.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:27:46 GMT</pubDate>
    <dc:creator>sandeepnaik</dc:creator>
    <dc:date>2020-10-29T09:27:46Z</dc:date>
    <item>
      <title>Structure Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178603#M12722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am declaring a structure in an header file. This file will be imported in every other file. The structure will be used in all the files.&lt;/P&gt;&lt;P&gt;I am facing following errors "&lt;STRONG&gt;C1067: Object is missing decl specifies&lt;/STRONG&gt;" and&lt;STRONG&gt;C 2450 Expected :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have tried all the permutation and combination for declaring this structure but I still get this error. I have checked my syntax many times and I am not finding any error.&lt;/P&gt;&lt;P&gt;I have noticed that not only srtucture but also variable declared as extern are giving me the same error.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 14:38:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178603#M12722</guid>
      <dc:creator>sandeepnaik</dc:creator>
      <dc:date>2012-07-09T14:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178604#M12723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Did you consider generating the preprocessor output and checking how the structure gets defined there?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There might be some macro some place, which generates the trouble.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 16:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178604#M12723</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-07-09T16:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178605#M12724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CrasyCat,&lt;/P&gt;&lt;P&gt;Can you guide me through the process or provide some refence document.&lt;/P&gt;&lt;P&gt;My code was working fine then suddenly I started facing this error!&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 18:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178605#M12724</guid>
      <dc:creator>sandeepnaik</dc:creator>
      <dc:date>2012-07-09T18:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178606#M12725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to check preprocessor output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Click right on the name of the .c file generating the issue in project window&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - In the drop down menu select preprocess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; A new window is opened showing preprocessor listing. Search for the structure definition in there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The syntax problem is probably arising before the structure definition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 18:45:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178606#M12725</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-07-09T18:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178607#M12726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CrasyCat,&lt;/P&gt;&lt;P&gt;&amp;nbsp; As you instructed I checked the preprocessor output: for my project.&lt;/P&gt;&lt;PRE&gt;extern struct{  unsigned char unit : 1;  unsigned char audio : 1;  unsigned char memPointer1;  unsigned char memPointer2;  unsigned char memStatus;  float alCount;  float DoCount;} prjData;typedef struct Prj{  unsigned char unit : 1;  unsigned char audio : 1;  unsigned char memPointer1;  unsigned char memPointer2;  unsigned char memStatus;  float alCount;  float DoCount;};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In the first type of declaration I get the errors "&lt;STRONG&gt;C1067: Object is missing decl specifies&lt;/STRONG&gt;" and &lt;STRONG&gt;C 2450 Expected ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For second type of declaration I get errors &lt;STRONG&gt;"C 1009 Invalid redeclaration of &amp;lt;structure-name&amp;gt;"&lt;/STRONG&gt; &lt;STRONG&gt;"C1067: Object is missing decl specifies&lt;/STRONG&gt;" and "&lt;STRONG&gt;C 2450 Expected ;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have thoroughly checked my project the structure name is no redeclared.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:27:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178607#M12726</guid>
      <dc:creator>sandeepnaik</dc:creator>
      <dc:date>2020-10-29T09:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178608#M12727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The portion of code you have provided can be compiled without any trouble with CW MCU V10.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp; There should be a problem some other place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are not able to locate the problem with the preprocessor listing, please submit a service request for that.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework?regFlag=fromOpenSR" rel="nofollow" target="_self"&gt;here&lt;/A&gt; to submit a service request.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Make sure to attach a reproducible project and installed product information to the service request.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 12:53:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Structure-Problem/m-p/178608#M12727</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-07-10T12:53:28Z</dc:date>
    </item>
  </channel>
</rss>

