<?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 Why did &amp;quot;bool” cause compilation errors in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849802#M51116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;DIV class="" style="color: #777777; background-color: #ffffff; font-size: 16px;"&gt;&lt;DIV class="" style="background-color: #ffffff; padding-bottom: 56px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background-color: #ffffff; padding: 20px 0px 0px;"&gt;&lt;DIV class="" style="padding: 0px 16px 0px 28px;"&gt;&lt;DIV class="" style="color: #777777;"&gt;I use "bool" in the s32ds.exe project, but the compiler reports an error. How do I use bool in my project?&lt;/DIV&gt;&lt;DIV class="" style="color: #777777;"&gt;Thanks.&lt;/DIV&gt;&lt;DIV class="" style="color: #777777;"&gt;Best regards&lt;/DIV&gt;&lt;DIV class="" style="color: #777777;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #777777;"&gt;yang&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #777777; background-color: #f5f5f5; font-size: 16px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background-color: #f5f5f5; padding: 20px 16px 56px 28px;"&gt;&lt;BR /&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Dec 2018 06:41:04 GMT</pubDate>
    <dc:creator>whagiew</dc:creator>
    <dc:date>2018-12-08T06:41:04Z</dc:date>
    <item>
      <title>Why did "bool” cause compilation errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849802#M51116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;DIV class="" style="color: #777777; background-color: #ffffff; font-size: 16px;"&gt;&lt;DIV class="" style="background-color: #ffffff; padding-bottom: 56px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background-color: #ffffff; padding: 20px 0px 0px;"&gt;&lt;DIV class="" style="padding: 0px 16px 0px 28px;"&gt;&lt;DIV class="" style="color: #777777;"&gt;I use "bool" in the s32ds.exe project, but the compiler reports an error. How do I use bool in my project?&lt;/DIV&gt;&lt;DIV class="" style="color: #777777;"&gt;Thanks.&lt;/DIV&gt;&lt;DIV class="" style="color: #777777;"&gt;Best regards&lt;/DIV&gt;&lt;DIV class="" style="color: #777777;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #777777;"&gt;yang&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #777777; background-color: #f5f5f5; font-size: 16px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background-color: #f5f5f5; padding: 20px 16px 56px 28px;"&gt;&lt;BR /&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2018 06:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849802#M51116</guid>
      <dc:creator>whagiew</dc:creator>
      <dc:date>2018-12-08T06:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why did "bool” cause compilation errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849803#M51117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yang,&lt;/P&gt;&lt;P&gt;'bool' is not a keyword in the C programming language. To use it, make sure you include stdbool.h:&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdbool.h&amp;gt;&lt;/P&gt;&lt;P&gt;in your sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 06:25:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849803#M51117</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-12-10T06:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why did "bool” cause compilation errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849804#M51118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An unanswerable question is why is it 'bool' and not 'bool_t' to match &amp;lt;stdint.h&amp;gt; types?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inconsistencies like this are annoying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2018 14:51:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849804#M51118</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2018-12-11T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why did "bool” cause compilation errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849805#M51119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;stdbool.h defines bool as a macro because the C standard 7.18&lt;/P&gt;&lt;P&gt;stdint.h defines intN_t as typedefs because the C standard 7.20&lt;/P&gt;&lt;P&gt;You can use one or the other to achieve the same effect, but it's better to use the proper one to your needs, you need to consider the compatibility of the your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 02:44:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849805#M51119</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-12-17T02:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why did "bool” cause compilation errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849806#M51120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The point is 'bool' is used as a type, it should end with a _t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The heading of 7.16 clearly states 'bool' is a type:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"7.16 Boolean type and values".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By convention macros in C are upper case then by 7.18 it should&amp;nbsp;&lt;/P&gt;&lt;P&gt;be BOOL, or properly BOOL_T.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We may be looking at different version of the standard as the one I'm looking at has 7.20 as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7.20 General utilities &amp;lt;stdlib.h&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 12:37:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849806#M51120</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2018-12-17T12:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why did "bool” cause compilation errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849807#M51121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, the problem is solved with your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2019 04:17:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-did-quot-bool-cause-compilation-errors/m-p/849807#M51121</guid>
      <dc:creator>whagiew</dc:creator>
      <dc:date>2019-01-26T04:17:58Z</dc:date>
    </item>
  </channel>
</rss>

