<?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: Compiling errors</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174851#M12102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;Appreciate the prompt response,&lt;/P&gt;&lt;P&gt;Please find the source files attached, along with the preprocess output.&lt;/P&gt;&lt;P&gt;I dont know if you require the MCU header file as well? I can only attach 3 files at a time. so I can send it in another message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im sure this is just some dumb error on my part , failing to comply with the compiler standards, but Id appreciate any light you can shed on the issue.&lt;/P&gt;&lt;P&gt;Cheers.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2010 01:30:04 GMT</pubDate>
    <dc:creator>New_to_HC08</dc:creator>
    <dc:date>2010-02-11T01:30:04Z</dc:date>
    <item>
      <title>Compiling errors</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174849#M12100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am new to HC08 (hence the alias)&lt;/P&gt;&lt;P&gt;and am trying to take over from the previous software developer.&lt;BR /&gt;I am working with a&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MC9S08GT60&lt;/STRONG&gt; in &lt;STRONG&gt;CodeWarrior 6.3&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Going through his code, I am getting the following compiler errors, when I try build this file.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Errors:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
Warning : C1013: Old style declarationascii_utilities.h line 5&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp; : C2801: 'IDENT' missingascii_utilities.h line 5&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp; : C5002: Illegal typeascii_utilities.h line 5&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp; : C1400: Missing parameter name in function headascii_utilities.h line 5&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp; : C2450: Expected:&amp;nbsp; . * + - &amp;amp; ! ~ ++ -- -&amp;gt; [ (&amp;nbsp; IDENT CONSTANT STRING sizeof __alignof__ __va_sizeof__ __va_arg_type__&amp;nbsp;&amp;nbsp;&amp;nbsp; ascii_utilities.h line 5&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp; : C1834: Indirection applied to non-pointerascii_utilities.h line 5&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp; : Compile failed&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The files Im trying to compile are simply:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ascii_utilities.c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
#include "includes.h"void int2string (__uint32__ value, char *string) { __uint8__ remainder; __uint8__ offset = 9;&amp;nbsp; strcpy(string, "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ");&amp;nbsp; do {&amp;nbsp; remainder = value % 10;&amp;nbsp; string[offset] = dec2char(remainder);&amp;nbsp; value = value / 10;&amp;nbsp; offset--; }&amp;nbsp; while (value != 0); string[10] = 0;&amp;nbsp; //Set to null.}char dec2char(__uint8__ value) { if ((value &amp;gt;= 0) &amp;amp;&amp;amp; (value &amp;lt;=9))&amp;nbsp; return (char) (value + 0x30); else&amp;nbsp; return 0;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ascii_utilities.h&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;
#ifndef _UTIL_H_ #define _UTIL_H_//Prototypesvoid int2string(UINT32, char *);char dec2char(UINT8);#endif&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been looking at the '&lt;STRONG&gt;HC08 Compiler Messages'&lt;/STRONG&gt;&amp;nbsp;help file, but Im struggling to resolve these errors.&lt;/P&gt;&lt;P&gt;I thought it might be the way the parameters to the functions are being declared, but no luck &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;help?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Byron&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174849#M12100</guid>
      <dc:creator>New_to_HC08</dc:creator>
      <dc:date>2020-10-29T09:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling errors</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174850#M12101</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; I would need the actual source files in order to try it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you generate the preprocessor output and attach it here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To generate preprocessor output click right on the file name in the .mcp file and select preprocess.&lt;/P&gt;&lt;P&gt;A new window will be opened. Save content of the window to a file and send it over.&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>Thu, 11 Feb 2010 01:14:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174850#M12101</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-02-11T01:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling errors</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174851#M12102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;Appreciate the prompt response,&lt;/P&gt;&lt;P&gt;Please find the source files attached, along with the preprocess output.&lt;/P&gt;&lt;P&gt;I dont know if you require the MCU header file as well? I can only attach 3 files at a time. so I can send it in another message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im sure this is just some dumb error on my part , failing to comply with the compiler standards, but Id appreciate any light you can shed on the issue.&lt;/P&gt;&lt;P&gt;Cheers.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 01:30:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174851#M12102</guid>
      <dc:creator>New_to_HC08</dc:creator>
      <dc:date>2010-02-11T01:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling errors</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174852#M12103</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 ascii_utilities.h you are using type UINT32, which is not defined before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure to include the header file where UINT32 is defined before ascii_utilities.h.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: UINT8 also need to be defined.&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>Thu, 11 Feb 2010 01:48:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174852#M12103</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-02-11T01:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling errors</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174853#M12104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;In a more general question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you like at the header file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;bootloader user api.h&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and have a look at the global vars and arrays, declared as 'externs'....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the header file (bootloader user api.h) is only included in &lt;STRONG&gt;includes.h&lt;/STRONG&gt;&amp;nbsp;if&lt;STRONG&gt;&amp;nbsp;BOOTLOADER_ENABLED&lt;/STRONG&gt;&amp;nbsp;is defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Where should this be defined or not?&lt;/P&gt;&lt;P&gt;2. If it is not defined and therefore the header file is not included, the source file (&lt;STRONG&gt;bootloader user api.c)&lt;/STRONG&gt; is going to give compiler errors everytime, is it not? is there a resolution?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 00:49:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiling-errors/m-p/174853#M12104</guid>
      <dc:creator>New_to_HC08</dc:creator>
      <dc:date>2010-02-12T00:49:25Z</dc:date>
    </item>
  </channel>
</rss>

