<?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>CodeWarrior for MCUのトピックRe: Use of _generic c99 Macro functionality</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456993#M12159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CodeWarrior 10.6 comes with gcc 4.7.3. KDS3.0 has the newer version 4.8.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far as i know we don't have a tool integrated gcc4.9.&lt;/P&gt;&lt;P&gt;Erich ever wrote article about how to switch gcc4.7 to CW10.3. please try if the same method can work for gcc4.9&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/01/28/switching-arm-gnu-gcc-toolchain-in-eclipse/" title="http://mcuoneclipse.com/2013/01/28/switching-arm-gnu-gcc-toolchain-in-eclipse/"&gt;Switching ARM GNU gcc Toolchain in Eclipse | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2015 04:16:38 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2015-12-21T04:16:38Z</dc:date>
    <item>
      <title>Use of _generic c99 Macro functionality</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456990#M12156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&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.5 build id 130916. My project is written in C.&lt;/P&gt;&lt;P&gt;The idea I did have was to add a _generic macro , to enable other files to only know\use just one interface definition.&lt;/P&gt;&lt;P&gt;For some reason it keeps complaining that the _Generic is unknown.&lt;/P&gt;&lt;P&gt;" error: expected ',' or ';' before '_Generic' "&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;call in c-file&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;int value1;&lt;/P&gt;&lt;P&gt;Function_GET2(value1)&lt;/P&gt;&lt;P&gt;BOOL value2&lt;/P&gt;&lt;P&gt;Function_GET2(value2)&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the h-file:&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;void Function_GET_ValueA(BOOL item);&lt;/P&gt;&lt;P&gt;void Function_GET_ValueB(int item);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define Function_GET2(X) _Generic((X), int: Function_GET_ValueA, BOOL: Function_GET_ValueB)(X)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set the project C compiler to language standard ISO C99 with GNU Extensions, because I did read that _Generic was supported in version C99.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore my question is what can I check\verify\change in Codewarrior that should be set to support the _Generic type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 10:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456990#M12156</guid>
      <dc:creator>emiel_84</dc:creator>
      <dc:date>2015-12-02T10:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _generic c99 Macro functionality</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456991#M12157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have fixed a small issue:&amp;nbsp; output is now:&lt;/P&gt;&lt;P&gt; " implicit declaration of function '_Generic' [-Wimplicit-function-declaration] "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 10:32:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456991#M12157</guid>
      <dc:creator>emiel_84</dc:creator>
      <dc:date>2015-12-02T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _generic c99 Macro functionality</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456992#M12158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like the gcc is to old.&lt;/P&gt;&lt;P&gt;gcc needs to be add version 4.9 at least for _Generic support.&lt;/P&gt;&lt;P&gt;Code-warrior seems to be using 4.7.3 ( link: &lt;A href="http://mcuoneclipse.com/2014/09/28/comparing-codewarrior-with-kinetis-design-studio/" title="http://mcuoneclipse.com/2014/09/28/comparing-codewarrior-with-kinetis-design-studio/"&gt;Comparing CodeWarrior with Kinetis Design Studio | MCU on Eclipse&lt;/A&gt; ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems I will not be able to use it unfortunately or did someone found a solution to get this working in code-warrior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 10:41:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456992#M12158</guid>
      <dc:creator>emiel_84</dc:creator>
      <dc:date>2015-12-02T10:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _generic c99 Macro functionality</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456993#M12159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CodeWarrior 10.6 comes with gcc 4.7.3. KDS3.0 has the newer version 4.8.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far as i know we don't have a tool integrated gcc4.9.&lt;/P&gt;&lt;P&gt;Erich ever wrote article about how to switch gcc4.7 to CW10.3. please try if the same method can work for gcc4.9&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/01/28/switching-arm-gnu-gcc-toolchain-in-eclipse/" title="http://mcuoneclipse.com/2013/01/28/switching-arm-gnu-gcc-toolchain-in-eclipse/"&gt;Switching ARM GNU gcc Toolchain in Eclipse | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 04:16:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-generic-c99-Macro-functionality/m-p/456993#M12159</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-12-21T04:16:38Z</dc:date>
    </item>
  </channel>
</rss>

