<?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: Can not link libraries with MC9S12E128 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129522#M946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;your problem is that during project creation, you decided to use compiler settings/libraries with integral support only? So no float and doubles. You probably did this by mistake.&lt;BR /&gt;That's why your library in the project (ansibi.lib, the 'i' at the end of the name stand s for 'integral only') does not contain any floating point support, like 'extern double sqrt (double x)'.&lt;BR /&gt;You could now change the library, change the compiler options/etc, but this is more for an expert and if you know what you are doing. The easiest for you is probably run through the wizard again.&lt;BR /&gt;If you create a project with the project wizard, then around step 6 the wizard asks you if you want to use any floating point support: you need to select support for floating point (either IEEE32 or IEEE64).&lt;BR /&gt;&lt;BR /&gt;PS: The reason for having an integral library is simply because of code density for several library functions: mainly printf(). If printf()/etc does not need to support the floating point formats, the code will be much more efficient and smaller.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Erich&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2006 15:46:41 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2006-03-22T15:46:41Z</dc:date>
    <item>
      <title>Can not link libraries with MC9S12E128</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129521#M945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I am having a lot of trouble linking a library to my program.&lt;BR /&gt;I am trying to make use of the math.h library, but I can not get access to it.&lt;BR /&gt;I am trying to test this using a simple program:&lt;/DIV&gt;&lt;BLOCKQUOTE class="jive-quote" dir="ltr"&gt;&lt;DIV&gt;&lt;EM&gt;#include &amp;lt;hidef.h&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* common defines and macros */&lt;BR /&gt;#include &amp;lt;mc9s12e128.h&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* derivative information */&lt;BR /&gt;#include &amp;lt;math.h&amp;gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;#pragma LINK_INFO DERIVATIVE "SampleS12"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;double result;&lt;BR /&gt;void main(void) {&lt;BR /&gt;result = sqrt(4);&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;EnableInterrupts;&lt;BR /&gt;&amp;nbsp;for(;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt; {} /* wait forever */&lt;BR /&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;At first I thought all you needed was the #include, then found out more needs to be done, and I can't seem to figure it out. I tried adding the math.h file to the libraries folder in the project, I also gave it high priority on the link order. I have been also fooling around with Command line arguments, but I do not know much about them. I have been searching for a solution to this for a long time and can not find it anywhere.&lt;/DIV&gt;&lt;BLOCKQUOTE class="jive-quote" dir="ltr"&gt;&lt;DIV&gt;The specific error I get is:&lt;BR /&gt;&lt;EM&gt;Link Error: L1822 Symbol sqrt in file main.c.o is undefined&lt;BR /&gt;Link Error: Link failed&lt;/EM&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;I also attached to this post, the zipped project file if that is needed.&lt;/DIV&gt;&lt;DIV&gt;Someone please give me a hand on this, I'm stumped! thank you,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-mark&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:09:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129521#M945</guid>
      <dc:creator>marcoB</dc:creator>
      <dc:date>2006-03-22T14:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can not link libraries with MC9S12E128</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129522#M946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;your problem is that during project creation, you decided to use compiler settings/libraries with integral support only? So no float and doubles. You probably did this by mistake.&lt;BR /&gt;That's why your library in the project (ansibi.lib, the 'i' at the end of the name stand s for 'integral only') does not contain any floating point support, like 'extern double sqrt (double x)'.&lt;BR /&gt;You could now change the library, change the compiler options/etc, but this is more for an expert and if you know what you are doing. The easiest for you is probably run through the wizard again.&lt;BR /&gt;If you create a project with the project wizard, then around step 6 the wizard asks you if you want to use any floating point support: you need to select support for floating point (either IEEE32 or IEEE64).&lt;BR /&gt;&lt;BR /&gt;PS: The reason for having an integral library is simply because of code density for several library functions: mainly printf(). If printf()/etc does not need to support the floating point formats, the code will be much more efficient and smaller.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Erich&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 15:46:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129522#M946</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2006-03-22T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can not link libraries with MC9S12E128</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129523#M947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;ok, thanks for that tip....looks like its gotten me somewhere possibly.&lt;BR /&gt;I'm now getting a different error:&lt;/P&gt;&lt;BLOCKQUOTE dir="ltr"&gt;&lt;P&gt;&lt;EM&gt;Link Error: L4025: This limited version allows only 1024 bytes of code.&lt;BR /&gt;Link Error: Link failed&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So by the looks of it, I dont have the full version. I believe I download a student version (as I am a student working on my final year project). Would an upgrade involve any cost? If so, I dont have any budget at all&lt;IMG alt=":smileyindifferent:" class="emoticon emoticon-smileyindifferent" id="smileyindifferent" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-indifferent.gif" title="Smiley Indifferent" /&gt;&lt;BR /&gt;Unless theres another way around this. I used the same code I mentioned before, and all the same settings except for the support for floating point, and I tried both 16 and 32. thanks,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 23:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129523#M947</guid>
      <dc:creator>marcoB</dc:creator>
      <dc:date>2006-03-22T23:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can not link libraries with MC9S12E128</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129524#M948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;ok...i got it working!!!&lt;BR /&gt;thanks for the help, i really appreciate it.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Mark&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 00:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Can-not-link-libraries-with-MC9S12E128/m-p/129524#M948</guid>
      <dc:creator>marcoB</dc:creator>
      <dc:date>2006-03-23T00:25:39Z</dc:date>
    </item>
  </channel>
</rss>

