<?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: Use of stdbool.h in Code Warrior for DSC in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Use-of-stdbool-h-in-Code-Warrior-for-DSC/m-p/396699#M408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif';"&gt;Please add the compiler option –flag slld to remove this compiler warning.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;To add the option, pleases select ‘Project’ menu -&amp;gt;Poperties &amp;gt; C/C++Build &amp;gt; Settings &amp;gt; DSC Compiler &amp;gt; ‘Language’ Panel &amp;gt;Other Flags&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="option.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35594iE881D047149B94FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="option.png" alt="option.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 06:08:37 GMT</pubDate>
    <dc:creator>TICS_Fiona</dc:creator>
    <dc:date>2015-12-22T06:08:37Z</dc:date>
    <item>
      <title>Use of stdbool.h in Code Warrior for DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Use-of-stdbool-h-in-Code-Warrior-for-DSC/m-p/396697#M406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use the _Bool type and `true`/`false` by including stdbool.h, here's my test code: &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;#pragma c99 on&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;#include &amp;lt;stdbool.h&amp;gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;void main(void) &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{ &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _Bool b = true; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = false;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I get the following error:&amp;nbsp; #warning "MSL support for C99 is not enabled" &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And neither `true` or `false` is defined. `_Bool` is defined and works correctly so I'm confused as to what's happening. How do I enable C99 mode, get the correct defines and get rid of the warning? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that, since _Bool works correctly, I can just define `true` and `false` myself but I want to understand what the warning means and what other problems it may cause. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using CodeWarrior 10.6 build 140329&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 03:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Use-of-stdbool-h-in-Code-Warrior-for-DSC/m-p/396697#M406</guid>
      <dc:creator>spacedog</dc:creator>
      <dc:date>2015-11-10T03:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Use of stdbool.h in Code Warrior for DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Use-of-stdbool-h-in-Code-Warrior-for-DSC/m-p/396698#M407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this issue is still slowing your progress, please add your sample project illustrating your issue by zipping up the entire project.&lt;/P&gt;&lt;P&gt;Or, if it is easier, please state the simple specification for a sample project that we can create now for the community to address this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 19:58:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Use-of-stdbool-h-in-Code-Warrior-for-DSC/m-p/396698#M407</guid>
      <dc:creator>johnlwinters</dc:creator>
      <dc:date>2015-12-21T19:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use of stdbool.h in Code Warrior for DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Use-of-stdbool-h-in-Code-Warrior-for-DSC/m-p/396699#M408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif';"&gt;Please add the compiler option –flag slld to remove this compiler warning.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;To add the option, pleases select ‘Project’ menu -&amp;gt;Poperties &amp;gt; C/C++Build &amp;gt; Settings &amp;gt; DSC Compiler &amp;gt; ‘Language’ Panel &amp;gt;Other Flags&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="option.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35594iE881D047149B94FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="option.png" alt="option.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 06:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Use-of-stdbool-h-in-Code-Warrior-for-DSC/m-p/396699#M408</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2015-12-22T06:08:37Z</dc:date>
    </item>
  </channel>
</rss>

