<?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 Cant use float operations in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Cant-use-float-operations/m-p/149667#M1990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i got a problem using HC12 and CW 5.9:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to multiply two floats:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;float x = 0.1;&lt;/P&gt;&lt;P&gt;float y = 0.2;&lt;/P&gt;&lt;P&gt;float z = 0.3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;z = x *y;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i try to run this i get following error: "L1822: Symbol _FMUL in file X:/XXXX/XXX.c.o is undefined".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;operations like z = x+y; or z = x-y; are also not possible giving an according error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why is this? how can i fix this problem? simple float multiplications should be possible!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i already removed the&amp;nbsp;-D__NO_FLOAT__ &amp;nbsp;parameter from the compiler settings. didn´t work. making a new project also doesn´t work, but i cant see a floating point option anywhere in the wizard anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~nano~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2012 18:45:24 GMT</pubDate>
    <dc:creator>Nanouser</dc:creator>
    <dc:date>2012-03-28T18:45:24Z</dc:date>
    <item>
      <title>Cant use float operations</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Cant-use-float-operations/m-p/149667#M1990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i got a problem using HC12 and CW 5.9:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to multiply two floats:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;float x = 0.1;&lt;/P&gt;&lt;P&gt;float y = 0.2;&lt;/P&gt;&lt;P&gt;float z = 0.3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;z = x *y;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i try to run this i get following error: "L1822: Symbol _FMUL in file X:/XXXX/XXX.c.o is undefined".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;operations like z = x+y; or z = x-y; are also not possible giving an according error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why is this? how can i fix this problem? simple float multiplications should be possible!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i already removed the&amp;nbsp;-D__NO_FLOAT__ &amp;nbsp;parameter from the compiler settings. didn´t work. making a new project also doesn´t work, but i cant see a floating point option anywhere in the wizard anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~nano~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 18:45:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Cant-use-float-operations/m-p/149667#M1990</guid>
      <dc:creator>Nanouser</dc:creator>
      <dc:date>2012-03-28T18:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cant use float operations</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Cant-use-float-operations/m-p/149668#M1991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You did not link the appropriate ANSI library file to your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You need to create a new project using the project wizard and make sure you enable floating point&lt;/P&gt;&lt;P&gt;&amp;nbsp; operation in the newly created project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 19:09:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Cant-use-float-operations/m-p/149668#M1991</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-03-28T19:09:55Z</dc:date>
    </item>
  </channel>
</rss>

