<?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>LPCXpresso IDEのトピックRe: &amp;lt;stdbool.h&amp;gt; doesn't work ?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562824#M16872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DaveNadler on Mon Oct 17 05:42:19 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Arial]Thanks CodeRed for fixing this in version 4 - much appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, Dave&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:44:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:44:47Z</dc:date>
    <item>
      <title>&lt;stdbool.h&gt; doesn't work ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562818#M16866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DaveNadler on Sat May 14 11:31:42 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Arial]Hi - I tried to use type "bool" (using LPCXpresso v3.6.3):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][INDENT][FONT=Fixedsys]#include &amp;lt;stdint.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][FONT=Fixedsys]#include &amp;lt;stdbool.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][FONT=Fixedsys]bool bools__dont_work;[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT][FONT=Arial]I got the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][INDENT][FONT=Fixedsys]../src/main.c:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bools__dont_work'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][/INDENT][FONT=Arial]Investigating the include shows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][INDENT][FONT=Fixedsys]#if !defined(__CR4_STDBOOL_H__)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][FONT=Fixedsys]#&amp;nbsp; define __CR4_STDBOOL_H__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][FONT=Fixedsys]#&amp;nbsp; if defined(__REDLIB__)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][FONT=Fixedsys]#&amp;nbsp;&amp;nbsp;&amp;nbsp; include_next &amp;lt;stdbool.h&amp;gt;[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT][FONT=Arial]Eclipse (and I) are confused by "include_next".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, Dave&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;g[/FONT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:44:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562818#M16866</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;stdbool.h&gt; doesn't work ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562819#M16867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sat May 14 12:59:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have an answer for why it doesn't work, but I do have a workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just add these to your source file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define&amp;nbsp; bool&amp;nbsp; _bool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define true 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define false 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Grab the stdbool.h from here: (If your using Linux you will have to find where it is.)&amp;nbsp; C:\nxp\lpcxpresso_3.6.3_317\Tools\lib\gcc\arm-none-eabi\4.3.3\include\newlib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copy and paste it into your projects source or include directory.&amp;nbsp; Change the include &amp;lt;stdbool.h&amp;gt; to include "stdbool.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tested both methods and they worked for me.&amp;nbsp; CodeRedSupport can answer your question later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Larry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:44:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562819#M16867</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;stdbool.h&gt; doesn't work ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562820#M16868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Sat May 14 14:27:39 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Redlib implements C90, whereas stdbool.h is part of C99. If you want a C99 level C library you will need to use Newlib (or in this case, simply provide your own implementation of the stdbool.h header).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/RedlibAndNewlib&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is probably worth adding that we are looking at extending the functionality provided by Redlib. Thus future releases of LPCXpresso will start to provide more C99 functionality (including stdbool.h).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:44:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562820#M16868</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;stdbool.h&gt; doesn't work ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562821#M16869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sat May 14 14:42:57 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are still wondering about the include_next look at this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562821#M16869</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;stdbool.h&gt; doesn't work ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562822#M16870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DaveNadler on Sun May 15 09:53:07 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Arial]Thanks all for the replies. Certainly I know how to work around this, I was hoping it wasn't necessary, it is after all already 2011 last I checked...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks especially for the [/FONT][FONT=Arial]GNU [/FONT][FONT=Arial]link !&amp;nbsp; I really enjoyed this part:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT][INDENT][I]The use of `#include_next' can lead to great confusion.&amp;nbsp; We recommend it be used only when there is no other alternative.[/I]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT][FONT=Arial]Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, Dave&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562822#M16870</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;stdbool.h&gt; doesn't work ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562823#M16871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sun May 15 10:08:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I knew you had the experience to circumvent the problem, others may not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: DaveNadler&lt;/STRONG&gt;&lt;BR /&gt;[FONT=Arial]...it is after all already 2011 last I checked...[/FONT]&lt;BR /&gt; &lt;BR /&gt;[FONT=Arial]Thanks especially for the [/FONT][FONT=Arial]GNU [/FONT][FONT=Arial]link !&amp;nbsp; I really enjoyed this part:[/FONT]&lt;BR /&gt;[INDENT][I]The use of `#include_next' can lead to great confusion.&amp;nbsp; We recommend it be used only when there is no other alternative.[/I]&lt;BR /&gt;[/INDENT]&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought you would notice that.:)&amp;nbsp; It's a kludge fix that should have been done away with a long time ago.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport should take notice of this because it obviously doesn't drill down to the next directory, newlib, as it implies and should.&amp;nbsp; It is indeed broken in this case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Larry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562823#M16871</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;stdbool.h&gt; doesn't work ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562824#M16872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DaveNadler on Mon Oct 17 05:42:19 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Arial]Thanks CodeRed for fixing this in version 4 - much appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, Dave&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/FONT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lt-stdbool-h-gt-doesn-t-work/m-p/562824#M16872</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:44:47Z</dc:date>
    </item>
  </channel>
</rss>

