<?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: calculate sinf() in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537010#M5347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sat Jul 09 10:29:52 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are we talking about LPC1343 and LPCXpresso4 ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:43:15 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:43:15Z</dc:date>
    <item>
      <title>calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537007#M5344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by volter on Sat Jul 09 09:41:48 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use sinf(); function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am receiving :&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;undefined reference to `sinf'&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Do I need to changed MCU linker from redlib(nohost)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to fix that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537007#M5344</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537008#M5345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sat Jul 09 09:54:04 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Include math.h ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?p=955&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537008#M5345</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537009#M5346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by volter on Sat Jul 09 10:06:15 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Include math.h ?&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?p=955&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did that. I get errors only on &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; sinf(),cosf(),asinf(),acosf()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but not on :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sin(),cos()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I now from C those functions defined like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;double sin(double angle);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;float sinf(float angle);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In eclipce I just added a Linker flag -lm &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how to fix this in this case?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537009#M5346</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537010#M5347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sat Jul 09 10:29:52 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are we talking about LPC1343 and LPCXpresso4 ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537010#M5347</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537011#M5348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Sat Jul 09 10:30:27 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/RedlibAndNewlib&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Redlib was written as a C90 compliant C library - sinf() is a C99 addition. If you want access to full C99 library support, you will need to switch to Newlib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However we have added a few C99 library functions in "Redlib_v2" included in LPCXpresso 4, which IIRC includes sinf(). I'll look into getting the details of the extra functionality added to one of our FAQs in the next few days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537011#M5348</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537012#M5349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Sat Jul 09 10:32:27 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sinf&amp;nbsp; (single precision version of sin) is not supported in redlib. Redlib is based on c89 whereas sinf was defined in c99.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can either cast sin to float or use newlib (which is c99, but also quite a bit larger)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537012#M5349</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537013#M5350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sat Jul 09 10:36:20 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a new LPCXpresso4 project (Redlib:nohost) and adding &amp;lt;math.h&amp;gt; was enough to get sin / sinf working :):eek::mad::confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537013#M5350</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537014#M5351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by volter on Sat Jul 09 10:58:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Creating a new LPCXpresso4 project (Redlib:nohost) and adding &amp;lt;math.h&amp;gt; was enough to get sin / sinf working :):eek::mad::confused:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sin, Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sinf, No&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537014#M5351</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537015#M5352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by volter on Sat Jul 09 12:29:05 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I install LPCXpresso4 without deleting LPCXpresso3?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using OpenSUSE 11.3:cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537015#M5352</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537016#M5353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sat Jul 09 12:30:40 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537016#M5353</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: calculate sinf()</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537017#M5354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Mon Jul 11 03:55:46 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;However we have added a few C99 library functions in "Redlib_v2" included in LPCXpresso 4, which IIRC includes sinf(). I'll look into getting the details of the extra functionality added to one of our FAQs in the next few days.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Details now added to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/redlib_v2_notes&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In summary, "Redlib_v2" now provides single precision math functions, such as sinf(), plus an implementation of stdbool.h. It also provides an implementation of the (non-standard) itoa() function, which has been asked about on several occasions in the past on this forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/calculate-sinf/m-p/537017#M5354</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:43:19Z</dc:date>
    </item>
  </channel>
</rss>

