<?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 Development ToolsのトピックMK53DN512CMD18 math.h problem</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MK53DN512CMD18-math-h-problem/m-p/426592#M2932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i´m usiing a MK53DN512CMD18 on a custom board and a need to do the operation below:&lt;/P&gt;&lt;P&gt;y=fabs(1.0-Accel_X);&lt;/P&gt;&lt;P&gt;The variables y and Accel_X are float type.&lt;/P&gt;&lt;P&gt;When i compile the proyect get the next warning:&lt;/P&gt;&lt;P&gt;Implicit declaration of function 'fabs' [-Wimplicit-function-declaration] incompatible implicit declaration of built-in function 'fabs' [enabled by default]&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;And debugging got stock on that line of the fabs function, also with others functions of the math library.&lt;/P&gt;&lt;P&gt;I realy appreciate your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alberto Peña&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Oct 2015 18:10:19 GMT</pubDate>
    <dc:creator>ing_albertopc</dc:creator>
    <dc:date>2015-10-23T18:10:19Z</dc:date>
    <item>
      <title>MK53DN512CMD18 math.h problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MK53DN512CMD18-math-h-problem/m-p/426592#M2932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i´m usiing a MK53DN512CMD18 on a custom board and a need to do the operation below:&lt;/P&gt;&lt;P&gt;y=fabs(1.0-Accel_X);&lt;/P&gt;&lt;P&gt;The variables y and Accel_X are float type.&lt;/P&gt;&lt;P&gt;When i compile the proyect get the next warning:&lt;/P&gt;&lt;P&gt;Implicit declaration of function 'fabs' [-Wimplicit-function-declaration] incompatible implicit declaration of built-in function 'fabs' [enabled by default]&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;And debugging got stock on that line of the fabs function, also with others functions of the math library.&lt;/P&gt;&lt;P&gt;I realy appreciate your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alberto Peña&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 18:10:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MK53DN512CMD18-math-h-problem/m-p/426592#M2932</guid>
      <dc:creator>ing_albertopc</dc:creator>
      <dc:date>2015-10-23T18:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: MK53DN512CMD18 math.h problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MK53DN512CMD18-math-h-problem/m-p/426593#M2933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use CW for MCU V10.6.4 ?&lt;/P&gt;&lt;P&gt;We're using 2 build tool chains for Kinetis: GCC and Freescale.&lt;/P&gt;&lt;P&gt;I've created a short example for both chain and according to the message it seems you're using GCC one.&lt;/P&gt;&lt;P&gt;On my side I got similar message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; implicit declaration of function 'fabs' [-Wimplicit-function-declaration] incompatible implicit declaration of built-in function 'fabs' [enabled by default] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main.c&amp;nbsp;&amp;nbsp;&amp;nbsp; /test/Sources&amp;nbsp;&amp;nbsp;&amp;nbsp; line 19&amp;nbsp;&amp;nbsp;&amp;nbsp; C/C++ Problem&lt;/P&gt;&lt;P&gt;The same code is built without warning with Freescale tool chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you have this warning ?&lt;/P&gt;&lt;P&gt;The math.h is not listing included in the source file.&lt;/P&gt;&lt;P&gt;In this case the fabs file is not defined and the compiler will generate this warning.&lt;/P&gt;&lt;P&gt;If I add the&amp;nbsp; #include &amp;lt;math.h&amp;gt;, the warning is not anymore generated.&lt;/P&gt;&lt;P&gt;This is quite similar to another post:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://community.nxp.com/thread/331583"&gt;CW 10.6 Kinetis - "incompatible implicit declaration" of all math.h functions?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&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, 26 Oct 2015 14:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/MK53DN512CMD18-math-h-problem/m-p/426593#M2933</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-10-26T14:31:36Z</dc:date>
    </item>
  </channel>
</rss>

