<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>undefined reference to &amp;#39;sqrtf&amp;#39; , &amp;#39;cosf, in nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83471/undefined-reference-to-sqrtf-cosf-in-nrf5340</link><description>I am working on nrf5340 DK using segger embedded studio. Using peripheral_uart example and i added SPI interface code. I need to integrate ICM20948 library to this application. Added all icm20948 related source code in CMakeList.txt ( Inside peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Sep 2022 09:33:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83471/undefined-reference-to-sqrtf-cosf-in-nrf5340" /><item><title>RE: undefined reference to 'sqrtf' , 'cosf, in nrf5340</title><link>https://devzone.nordicsemi.com/thread/388722?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 09:33:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80cb7255-173a-4adb-96a2-aef4baebce97</guid><dc:creator>lammobile</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am also in the same situation. When using nRF52840 with SEGGER I can find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;cosf&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function in the file &amp;quot;user\SEGGER\SEGGER Embedded Studio for ARM 5.64\include\math.h&amp;quot;. But with nRF connect, I don&amp;#39;t know how to find it or implement it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you explain in more detail?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to 'sqrtf' , 'cosf, in nrf5340</title><link>https://devzone.nordicsemi.com/thread/347555?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 10:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d8ea7f-7d91-450d-b30d-35b9abc72f9b</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Nidhin,&lt;/p&gt;
&lt;p&gt;it seems that the float versions sqrtf and cosf are not part of the math.h library for C, only C++. You could however use C++ and integrate it into your project if you prefer.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to 'sqrtf' , 'cosf, in nrf5340</title><link>https://devzone.nordicsemi.com/thread/346989?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 15:43:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db8d72fb-4ffc-4ba2-b8fc-b7c5af1803a3</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Nidhin!&lt;/p&gt;
&lt;p&gt;I am looking into it, but I will have to get back to you on this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>