<?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>Configure math.h lib with cmake on SDK Mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44735/configure-math-h-lib-with-cmake-on-sdk-mesh</link><description>Hello community! 
 I use the dongle PCA10059 (nrf52840) for my hardware. I already enable -DARM_MATH_CM4 and link library libarm_cortexM4lf_math.a with CMake. I can include arm_math.h in my project and use arm_power_f32 for example. But I also need to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2019 11:04:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44735/configure-math-h-lib-with-cmake-on-sdk-mesh" /><item><title>RE: Configure math.h lib with cmake on SDK Mesh</title><link>https://devzone.nordicsemi.com/thread/176145?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 11:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5987385c-0b51-426b-bfe6-5b2e112e1538</guid><dc:creator>Corentin</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;set(MATH_LINK_LIBRARIE ${MATH_LINK_LIBRARIE} ${CMAKE_SOURCE_DIR}/firmware/lib/nRF5_SDK_15.2.0_9412b96/components/toolchain/cmsis/dsp/GCC/libarm_cortexM4lf_math.a)

target_link_libraries(${target_debug}
    rtt_${PLATFORM}
    uECC_${PLATFORM}
    ${MATH_LINK_LIBRARIE})&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Yes sorry i link the library like this (already do with RTT and uECC).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure math.h lib with cmake on SDK Mesh</title><link>https://devzone.nordicsemi.com/thread/176144?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 11:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52ee6b7f-7d01-4074-8536-979f561ec09f</guid><dc:creator>awneil</dc:creator><description>[quote userid="23317" url="~/f/nordic-q-a/44735/configure-math-h-lib-with-cmake-on-sdk-mesh/176143"]&lt;span&gt;add&amp;nbsp;&lt;/span&gt;&lt;span&gt;libarm_cortexM4l_math.a in include path&lt;/span&gt;[/quote]
&lt;p&gt;Now that one &lt;em&gt;&lt;strong&gt;is&lt;/strong&gt; &lt;/em&gt;a Library, so you need to add it to the &lt;em&gt;&lt;strong&gt;Linker&amp;#39;s&lt;/strong&gt;&lt;/em&gt; libraries path - not the compiler&amp;#39;s include path.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure math.h lib with cmake on SDK Mesh</title><link>https://devzone.nordicsemi.com/thread/176143?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 10:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac3056d9-6e31-4a01-a2e2-c1a04c7c1889</guid><dc:creator>Corentin</dc:creator><description>&lt;p&gt;&lt;span&gt;I already do this: add&amp;nbsp;&lt;/span&gt;&lt;span&gt;libarm_cortexM4l_math.a in include path and add define&amp;nbsp;ARM_MATH_CM4. I can use functions in arm_math.h execpt function pointed to &amp;quot;math.h&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure math.h lib with cmake on SDK Mesh</title><link>https://devzone.nordicsemi.com/thread/175761?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 17:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da51bdd4-6f74-417f-9365-90d59fdbde74</guid><dc:creator>awneil</dc:creator><description>[quote userid="23317" url="~/f/nordic-q-a/44735/configure-math-h-lib-with-cmake-on-sdk-mesh"]I understand that compiler&amp;nbsp;doesn&amp;#39;t&amp;nbsp;find math.h library.[/quote]
&lt;p&gt;math.h isn&amp;#39;t a &lt;em&gt;library&lt;/em&gt; - it&amp;#39;s just a header file.&lt;/p&gt;
&lt;p&gt;It&amp;#39;ll be the &lt;em&gt;Linker&lt;/em&gt; that needs the library ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure math.h lib with cmake on SDK Mesh</title><link>https://devzone.nordicsemi.com/thread/175759?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 16:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:984255d4-7006-425a-b242-f2f6c24f58d7</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi. &lt;/p&gt;
&lt;p&gt;Maybe you could take a look at the suggestion in this thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27715/nrf52832-how-to-include-the-arm_math-h-library"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/27715/nrf52832-how-to-include-the-arm_math-h-library&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>