<?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: Problem with the math.h standard library</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-the-math-h-standard-library/m-p/748654#M14462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created simple project, but I am not able to reproduce the issue on my side. Could you please create simple example which demonstrates your issue and attach it to this post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 12:56:54 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2017-11-07T12:56:54Z</dc:date>
    <item>
      <title>Problem with the math.h standard library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-the-math-h-standard-library/m-p/748653#M14461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on the MPC5643L using the tool CW10.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one project I have to use some of the functions of the math.h.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The functions I use are the "floorf" and the "fmodf".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But than compiler produces the following errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-undefined: 'floorf' Referenced from 'Simulink_Task_1ms' in WST_c.obj&lt;/P&gt;&lt;P&gt;-undefined: 'fmodf' Referenced from 'Simulink_Task_1ms' in WST_c.obj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m not sure what´s wrong, cause I included the math.h in the source file. I also added the ewl-directory into the include directories of the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I seem that the math.h isn´t translated correctly cause of some missing preprocessor macros. For example the macro "_EWL_C99" is missing. And I can´t define them correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to change another project settings or attach another prefix-file to the project?&lt;/P&gt;&lt;P&gt;Or is it generally possible to use the ewl-libraries with the&amp;nbsp;&lt;SPAN&gt;MPC5643L?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Florian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 18:03:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-the-math-h-standard-library/m-p/748653#M14461</guid>
      <dc:creator>flofa</dc:creator>
      <dc:date>2017-11-03T18:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the math.h standard library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-the-math-h-standard-library/m-p/748654#M14462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created simple project, but I am not able to reproduce the issue on my side. Could you please create simple example which demonstrates your issue and attach it to this post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 12:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-the-math-h-standard-library/m-p/748654#M14462</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-11-07T12:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the math.h standard library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-the-math-h-standard-library/m-p/748655#M14463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could solve that Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I excluded the "libc_E200z446_VLE_SPFP_Only.a" library from the project. I think the "math.h" is part of that library. And that was the reason why it didn´t work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After re-including the library it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks for your help.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best regards&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Florian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 07:37:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-with-the-math-h-standard-library/m-p/748655#M14463</guid>
      <dc:creator>flofa</dc:creator>
      <dc:date>2017-11-15T07:37:41Z</dc:date>
    </item>
  </channel>
</rss>

